forked from bton/matekasse
restore db create log
This commit is contained in:
parent
004944d46f
commit
edc9001ece
2 changed files with 16 additions and 0 deletions
13
Website/create_db_restore_log.py
Normal file
13
Website/create_db_restore_log.py
Normal 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
3
Website/restore_log
Normal 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
|
Loading…
Reference in a new issue