Only print with debug

merge-requests/30/head
Bob Mottram 2021-03-11 11:40:20 +00:00
parent 677b68c6ea
commit 32baf6b41f
1 changed files with 2 additions and 1 deletions

View File

@ -206,7 +206,8 @@ def sendLikeViaServer(baseDir: str, session,
postResult = postJson(session, newLikeJson, [], inboxUrl, postResult = postJson(session, newLikeJson, [], inboxUrl,
headers, 30, True) headers, 30, True)
if not postResult: if not postResult:
print('WARN: POST announce failed for c2s to ' + inboxUrl) if debug:
print('WARN: POST announce failed for c2s to ' + inboxUrl)
return 5 return 5
if debug: if debug: