summaryrefslogtreecommitdiffstats
path: root/module/web/pyload
diff options
context:
space:
mode:
authorGravatar Gregy <gregy@gregy.cz> 2010-08-07 21:59:16 +0200
committerGravatar Gregy <gregy@gregy.cz> 2010-08-07 21:59:16 +0200
commit5db6490dcbfc2806085556953babf2b128d84e3a (patch)
treea1eb1c265d73f30f7d2c03c5a6e6f0873ae2dcbc /module/web/pyload
parentLog doesn't crash on empty line (diff)
downloadpyload-5db6490dcbfc2806085556953babf2b128d84e3a.tar.xz
More log fixes
Diffstat (limited to 'module/web/pyload')
-rw-r--r--module/web/pyload/views.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/module/web/pyload/views.py b/module/web/pyload/views.py
index 58d1991ae..082882147 100644
--- a/module/web/pyload/views.py
+++ b/module/web/pyload/views.py
@@ -226,6 +226,9 @@ def logs(request, item=-1):
dtime = datetime.strptime(date+' '+time, '%d.%m.%Y %H:%M:%S')
except:
dtime = datetime.strptime('01.01.3333 12:12:12', '%d.%m.%Y %H:%M:%S')
+ date = '?'
+ time = ' '
+ level = '?'
message = l;
if item == -1 and fro <= dtime:
item = counter #found our datetime