mirror of https://gitlab.com/bashrc2/epicyon
Only save a post log in debug mode
parent
9b21151523
commit
4326c67b1a
9
posts.py
9
posts.py
|
@ -1026,10 +1026,11 @@ 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)
|
||||||
# save the log file
|
if debug:
|
||||||
postLogFilename=baseDir+'/post.log'
|
# save the log file
|
||||||
with open(postLogFilename, "a+") as logFile:
|
postLogFilename=baseDir+'/post.log'
|
||||||
logFile.write(logStr+'\n')
|
with open(postLogFilename, "a+") as logFile:
|
||||||
|
logFile.write(logStr+'\n')
|
||||||
|
|
||||||
if postResult:
|
if postResult:
|
||||||
if debug:
|
if debug:
|
||||||
|
|
Loading…
Reference in New Issue