summaryrefslogtreecommitdiff
path: root/crocoite/controller.py
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2019-03-16 14:01:30 +0100
committerLars-Dominik Braun <lars@6xq.net>2019-03-16 17:17:46 +0100
commit810f9b3fdfb729b23e77de13497f711b1e78d15e (patch)
tree0f5e908f756c7d95efb149162988220e42960023 /crocoite/controller.py
parent952240c2a52b26ef66324e78216366f4c9dd26f4 (diff)
downloadcrocoite-810f9b3fdfb729b23e77de13497f711b1e78d15e.tar.gz
crocoite-810f9b3fdfb729b23e77de13497f711b1e78d15e.tar.bz2
crocoite-810f9b3fdfb729b23e77de13497f711b1e78d15e.zip
Add more debug messages
…to controller and behavior
Diffstat (limited to 'crocoite/controller.py')
-rw-r--r--crocoite/controller.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/crocoite/controller.py b/crocoite/controller.py
index 788a131..772bf44 100644
--- a/crocoite/controller.py
+++ b/crocoite/controller.py
@@ -22,8 +22,7 @@
Controller classes, handling actions required for archival
"""
-import time
-import tempfile, asyncio, json, os
+import time, tempfile, asyncio, json, os
from itertools import islice
from datetime import datetime
from operator import attrgetter
@@ -176,23 +175,32 @@ class SinglePageController:
if not finished:
# idle timeout
+ logger.debug ('idle timeout',
+ uuid='90702590-94c4-44ef-9b37-02a16de444c3')
idleProc.cancel ()
timeoutProc.cancel ()
break
elif handle in finished:
# something went wrong while processing the data
+ logger.error ('fetch failed',
+ uuid='43a0686a-a3a9-4214-9acd-43f6976f8ff3')
idleProc.cancel ()
timeoutProc.cancel ()
handle.result ()
assert False # previous line should always raise Exception
elif timeoutProc in finished:
# global timeout
+ logger.debug ('global timeout',
+ uuid='2f858adc-9448-4ace-94b4-7cd1484c0728')
idleProc.cancel ()
timeoutProc.result ()
break
elif idleProc in finished:
# idle state change
isIdle = idleProc.result ()
+ logger.debug ('idle state',
+ uuid='e3eaff79-7b56-4d17-aa42-d32fa1ec268b',
+ idle=isIdle)
if isIdle:
# browser is idle, start the clock
idleTimeout = self.settings.idleTimeout