From 1e9bffa6a34d0c6fcf28ed2a10690420adb4eaee Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 16 Nov 2019 14:07:54 +0000 Subject: [PATCH] Log time for html cache saves --- inbox.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inbox.py b/inbox.py index 6fae90509..ee2bb1eb4 100644 --- a/inbox.py +++ b/inbox.py @@ -1625,12 +1625,14 @@ def inboxAfterCapabilities(session,keyId: str,handle: str,messageJson: {}, \ if not unitTest: if debug: print('DEBUG: saving inbox post as html to cache') + htmlCacheStartTime=time.time() inboxStorePostToHtmlCache(translate,baseDir,httpPrefix, \ session,cachedWebfingers,personCache, \ handle.split('@')[0],domain,port, \ postJsonObject,allowDeletion) if debug: - print('DEBUG: saved inbox post as html to cache') + timeDiff=str(int((time.time()-htmlCacheStartTime)*1000)) + print('DEBUG: saved inbox post as html to cache in '+timeDiff+' mS') # send the post out to group members if isGroup: