diff --git a/back/pialert.py b/back/pialert.py index 1885c9e8..be1a0e5e 100755 --- a/back/pialert.py +++ b/back/pialert.py @@ -128,8 +128,7 @@ def main (): write_file(LOG_PATH + 'IP_changes.log', '') write_file(LOG_PATH + 'stdout.log', '') write_file(LOG_PATH + 'stderr.log', '') - write_file(LOG_PATH + 'pialert.log', '') - write_file(LOG_PATH + 'pialert_file.log', '') + write_file(LOG_PATH + 'pialert.log', '') while True: # update NOW time @@ -2220,7 +2219,7 @@ def file_print(*args): result = '' - file = open(LOG_PATH + "/pialert_file.log", "a") + file = open(LOG_PATH + "/pialert.log", "a") for arg in args: result += str(arg) print(result) diff --git a/dockerfiles/start.sh b/dockerfiles/start.sh index 856fa35a..222d5f4a 100755 --- a/dockerfiles/start.sh +++ b/dockerfiles/start.sh @@ -20,4 +20,4 @@ chmod -R a+rw /home/pi/pialert/front/log # cron -f -python /home/pi/pialert/back/pialert.py > /home/pi/pialert/front/log/pialert.log 2>&1 +python /home/pi/pialert/back/pialert.py diff --git a/front/maintenance.php b/front/maintenance.php index e40c121a..d318fd82 100755 --- a/front/maintenance.php +++ b/front/maintenance.php @@ -376,16 +376,6 @@ if ($_REQUEST['tab'] == '1') {
- -
-
- pialert_file.log -
-
- -
-
pialert.log