[gnome-schedule/freebsd] output some debug info
- From: Gaute Hope <gauteh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-schedule/freebsd] output some debug info
- Date: Tue, 4 Oct 2011 13:14:44 +0000 (UTC)
commit e096f1a37f4eb334211616f9ef841a66430db579
Author: Gaute Hope <eg gaute vetsj com>
Date: Tue Oct 4 15:10:47 2011 +0200
output some debug info
src/at.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/at.py b/src/at.py
index 27d3d24..371a03f 100644
--- a/src/at.py
+++ b/src/at.py
@@ -57,6 +57,7 @@ class At:
# FreeBSD atq output, parser ignores time zone information
if self.sysname == 'FreeBSD':
+ print "[AT] FreeBSD."
self.atRecordRegex = re.compile ('^(?P<dow>.{3})(?P<month>\s.{3})\s(?P<day>[0-9]+)\s(?P<time>[0-2][0-9]:[0-5][0-9]:[0-5][0-9])\s(?:(?P<tzone>.*)\s|)(?P<year>[0-9]{4})\s*(?P<owner>.+)\s*(?P<queue>[a-z]|[A-Z])\s*(?P<jobid>[0-9]*)$')
# after you add a job, this line is printed to stderr
# Job 5 will be executed using /bin/sh
@@ -548,7 +549,7 @@ fi
#print _("added %(id)s") % { "id": job_id }
else:
- print _("Warning: a line in atq's output didn't parse")
+ print _("Warning: a line in atq's output didn't parse: %s") % line
return data
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]