mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
mark TIMEOUT log entry as ERROR
This commit is contained in:
@@ -11,10 +11,10 @@ services:
|
|||||||
network_mode: host
|
network_mode: host
|
||||||
# restart: unless-stopped
|
# restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ${APP_DATA_LOCATION}/pialert_dev/config:/home/pi/pialert/config
|
# - ${APP_DATA_LOCATION}/pialert_dev/config:/home/pi/pialert/config
|
||||||
# - ${APP_DATA_LOCATION}/pialert/config:/home/pi/pialert/config
|
- ${APP_DATA_LOCATION}/pialert/config:/home/pi/pialert/config
|
||||||
- ${APP_DATA_LOCATION}/pialert_dev/db:/home/pi/pialert/db
|
# - ${APP_DATA_LOCATION}/pialert_dev/db:/home/pi/pialert/db
|
||||||
# - ${APP_DATA_LOCATION}/pialert/db:/home/pi/pialert/db
|
- ${APP_DATA_LOCATION}/pialert/db:/home/pi/pialert/db
|
||||||
# (optional) useful for debugging if you have issues setting up the container
|
# (optional) useful for debugging if you have issues setting up the container
|
||||||
- ${LOGS_LOCATION}:/home/pi/pialert/front/log
|
- ${LOGS_LOCATION}:/home/pi/pialert/front/log
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -215,7 +215,7 @@ def execute_plugin(db, plugin, pluginsState = plugins_state() ):
|
|||||||
mylog('none', [e.output])
|
mylog('none', [e.output])
|
||||||
mylog('none', ['[Plugins] ⚠ ERROR - enable LOG_LEVEL=debug and check logs'])
|
mylog('none', ['[Plugins] ⚠ ERROR - enable LOG_LEVEL=debug and check logs'])
|
||||||
except subprocess.TimeoutExpired as timeErr:
|
except subprocess.TimeoutExpired as timeErr:
|
||||||
mylog('none', ['[Plugins] TIMEOUT - the process forcefully terminated as timeout reached'])
|
mylog('none', [f'[Plugins] ⚠ ERROR - TIMEOUT - the plugin {plugin["unique_prefix"]} forcefully terminated as timeout reached. Increase TIMEOUT setting and scan interval.'])
|
||||||
|
|
||||||
|
|
||||||
# check the last run output
|
# check the last run output
|
||||||
|
|||||||
Reference in New Issue
Block a user