This commit is contained in:
Jokob-sk
2022-12-11 16:37:20 +11:00
parent 0f8f3eca81
commit 9eb9ba1039
3 changed files with 3 additions and 14 deletions

View File

@@ -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)

View File

@@ -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

View File

@@ -376,16 +376,6 @@ if ($_REQUEST['tab'] == '1') {
<!-- ---------------------------Logging-------------------------------------------- -->
<div class="tab-pane" id="tab_Logging">
<div class="db_info_table">
<div class="db_info_table_row">
<div class="db_tools_table_cell_a" style="">
pialert_file.log
</div>
<div class="db_tools_table_cell_b">
<textarea class="logs" cols="70" rows="10" ><?php echo file_get_contents( "./log/pialert_file.log" ); ?>
</textarea>
</div>
</div>
<div class="db_info_table_row">
<div class="db_tools_table_cell_a" style="">
pialert.log