From 78218d355991cdfeac3c8e533d764420c48a434a Mon Sep 17 00:00:00 2001 From: Roland Date: Sun, 16 Oct 2022 10:33:43 -0600 Subject: [PATCH] Decreasing some log warnings to debugs. Decreasing CPU temperature warning color. --- app/src/components/admin/Status.js | 2 +- modules/archive/lib.py | 2 +- wrolpi/admin.py | 2 +- wrolpi/files/lib.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/components/admin/Status.js b/app/src/components/admin/Status.js index 56631c19..54d83b83 100644 --- a/app/src/components/admin/Status.js +++ b/app/src/components/admin/Status.js @@ -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 diff --git a/modules/archive/lib.py b/modules/archive/lib.py index cba67bed..f74ffe36 100644 --- a/modules/archive/lib.py +++ b/modules/archive/lib.py @@ -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 diff --git a/wrolpi/admin.py b/wrolpi/admin.py index 124592b7..4b1f21fd 100644 --- a/wrolpi/admin.py +++ b/wrolpi/admin.py @@ -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.') diff --git a/wrolpi/files/lib.py b/wrolpi/files/lib.py index 31c6ce44..7b36bb69 100644 --- a/wrolpi/files/lib.py +++ b/wrolpi/files/lib.py @@ -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()