Decreasing some log warnings to debugs. Decreasing CPU temperature warning color.

This commit is contained in:
Roland 2022-10-16 10:33:43 -06:00
parent c97af1060b
commit 78218d3559
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
4 changed files with 4 additions and 4 deletions

View file

@ -28,7 +28,7 @@ function CPUTemperatureStatistic({value, high_temperature, critical_temperature}
const props = {};
if ((critical_temperature && value >= critical_temperature) || (!critical_temperature && value >= 75)) {
props['color'] = 'red';
} else if ((high_temperature && value >= high_temperature) || (!high_temperature && value >= 60)) {
} else if ((high_temperature && value >= high_temperature) || (!high_temperature && value >= 55)) {
props['color'] = 'orange';
}
return <Statistic label='Temp C°' value={value} {...props}/>

View file

@ -557,7 +557,7 @@ def archive_search(search_str: str, domain: str, limit: int, offset: int, order_
OFFSET %(offset)s
LIMIT %(limit)s
'''
logger.warning(stmt, params)
logger.debug(stmt, params)
results, total = handle_search_results(stmt, params)
return results, total

View file

@ -52,7 +52,7 @@ def enable_hotspot():
If Wi-Fi is already running, replace that with a hotspot.
"""
status = hotspot_status()
logger.warning(f'Hotspot status: {status}')
logger.info(f'Hotspot status: {status}')
if status == HotspotStatus.connected:
logger.info('Hotspot already connected. Restarting hotspot.')

View file

@ -209,7 +209,7 @@ async def _refresh_all_files():
with get_db_curs(commit=True) as curs:
curs.execute('DELETE FROM file WHERE idempotency < %s OR idempotency is null RETURNING path', (idempotency,))
deleted = list(curs.fetchall())
logger.warning(f'{deleted=}')
logger.debug(f'{deleted=}')
logger.warning(f'Removed {len(deleted)} missing files')
apply_after_refresh()