mirror of https://gitlab.com/bashrc2/epicyon
Log digest calculation time
parent
e0cb54169c
commit
7654534777
10
inbox.py
10
inbox.py
|
@ -299,7 +299,13 @@ def savePostToInboxQueue(baseDir: str,httpPrefix: str, \
|
||||||
if nickname=='inbox':
|
if nickname=='inbox':
|
||||||
nickname=originalDomain
|
nickname=originalDomain
|
||||||
sharedInboxItem=True
|
sharedInboxItem=True
|
||||||
|
|
||||||
|
digestStartTime=time.time()
|
||||||
|
digest=messageContentDigest(messageBytes)
|
||||||
|
timeDiff=int((time.time()-digestStartTime)*1000)
|
||||||
|
if debug or timeDiff>200:
|
||||||
|
print('DIGEST|'+str(timeDiff)+'|'+filename)
|
||||||
|
|
||||||
newQueueItem = {
|
newQueueItem = {
|
||||||
'originalId': originalPostId,
|
'originalId': originalPostId,
|
||||||
'id': postId,
|
'id': postId,
|
||||||
|
@ -313,7 +319,7 @@ def savePostToInboxQueue(baseDir: str,httpPrefix: str, \
|
||||||
'httpHeaders': httpHeaders,
|
'httpHeaders': httpHeaders,
|
||||||
'path': postPath,
|
'path': postPath,
|
||||||
'post': postJsonObject,
|
'post': postJsonObject,
|
||||||
'digest': messageContentDigest(messageBytes),
|
'digest': digest,
|
||||||
'filename': filename,
|
'filename': filename,
|
||||||
'destination': destination
|
'destination': destination
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue