mirror of https://gitlab.com/bashrc2/epicyon
Log digest calculation time
parent
e0cb54169c
commit
7654534777
8
inbox.py
8
inbox.py
|
@ -300,6 +300,12 @@ def savePostToInboxQueue(baseDir: str,httpPrefix: str, \
|
|||
nickname=originalDomain
|
||||
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 = {
|
||||
'originalId': originalPostId,
|
||||
'id': postId,
|
||||
|
@ -313,7 +319,7 @@ def savePostToInboxQueue(baseDir: str,httpPrefix: str, \
|
|||
'httpHeaders': httpHeaders,
|
||||
'path': postPath,
|
||||
'post': postJsonObject,
|
||||
'digest': messageContentDigest(messageBytes),
|
||||
'digest': digest,
|
||||
'filename': filename,
|
||||
'destination': destination
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue