mirror of https://gitlab.com/bashrc2/epicyon
Only save a post log in debug mode
parent
9b21151523
commit
4326c67b1a
1
posts.py
1
posts.py
|
@ -1026,6 +1026,7 @@ def threadSendPost(session,postJsonStr: str,federationList: [],\
|
||||||
# Don't accumulate massive files on systems with limited resources
|
# Don't accumulate massive files on systems with limited resources
|
||||||
while len(postLog)>16:
|
while len(postLog)>16:
|
||||||
postLog.pop(0)
|
postLog.pop(0)
|
||||||
|
if debug:
|
||||||
# save the log file
|
# save the log file
|
||||||
postLogFilename=baseDir+'/post.log'
|
postLogFilename=baseDir+'/post.log'
|
||||||
with open(postLogFilename, "a+") as logFile:
|
with open(postLogFilename, "a+") as logFile:
|
||||||
|
|
Loading…
Reference in New Issue