mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-19 14:36:22 -05:00
Decreasing some log warnings to debugs. Decreasing CPU temperature warning color.
This commit is contained in:
parent
c97af1060b
commit
78218d3559
4 changed files with 4 additions and 4 deletions
|
|
@ -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}/>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.')
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue