1
0
Fork 0
forked from anton/matekasse

restore db create log

This commit is contained in:
2000-Trek 2023-11-24 20:11:26 +01:00
parent 004944d46f
commit edc9001ece
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,13 @@
import sys
filename = sys.argv[1]
db_log = []
with open(filename, 'r') as f:
for line in f:
if "db" in line:
db_log.append(line)
with open("restore_log", "x") as f:
for i in db_log:
f.write(i)
f.close

3
Website/restore_log Normal file
View file

@ -0,0 +1,3 @@
2023-11-24 18:25:46,538 - db - INFO - Website is starting
2023-11-24 18:25:46,547 - db - INFO - Website is starting
2023-11-24 18:26:16,265 - db - INFO - Added user id: 3 name: 0