1
This commit is contained in:
parent
4caa5dcb31
commit
e5a9d9319b
@ -100,8 +100,7 @@ def processOneLine(gameid, filename, log_key, log_conf, event_name, line):
|
||||
#end if
|
||||
return None
|
||||
|
||||
def processOneFile(gameid, filename, log_key, log_conf):
|
||||
log_dir = f7.app.ext['conf']['log_dir']
|
||||
def processOneFile(gameid, log_dir, filename, log_key, log_conf):
|
||||
out_dir = f7.app.ext['conf']['out_dir']
|
||||
old_dir = f7.app.ext['conf']['old_dir']
|
||||
data = ''
|
||||
@ -147,14 +146,22 @@ def syncLogThreadProc():
|
||||
for filename in file_names:
|
||||
log_conf, log_key = getLogConf(filename)
|
||||
if log_conf:
|
||||
processOneFile(1009, filename, log_key, log_conf)
|
||||
processOneFile(1009,
|
||||
f7.app.ext['conf']['log_dir1009'],
|
||||
filename,
|
||||
log_key,
|
||||
log_conf)
|
||||
#end for
|
||||
|
||||
file_names = os.listdir(f7.app.ext['conf']['log_dir1012'])
|
||||
for filename in file_names:
|
||||
log_conf, log_key = getLogConf(filename)
|
||||
if log_conf:
|
||||
processOneFile(1012, filename, log_key, log_conf)
|
||||
processOneFile(1012,
|
||||
f7.app.ext['conf']['log_dir1012'],
|
||||
filename,
|
||||
log_key,
|
||||
log_conf)
|
||||
#end for
|
||||
|
||||
print('sync ok')
|
||||
|
Loading…
x
Reference in New Issue
Block a user