diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-26 16:31:20 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-09-26 17:03:47 +0200 |
| commit | dd32da86b056ba77b78969b5453ba82189150a21 (patch) | |
| tree | 105dfc1cf5d35ec90d820a34b3caec59315a61bc /client/notifier.py | |
| parent | a2962d0970015b5b478b344fb2063f5304cccb59 (diff) | |
| download | jasper-client-dd32da86b056ba77b78969b5453ba82189150a21.tar.gz jasper-client-dd32da86b056ba77b78969b5453ba82189150a21.zip | |
Add some logging in notifier module
Diffstat (limited to 'client/notifier.py')
| -rw-r--r-- | client/notifier.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/client/notifier.py b/client/notifier.py index 6911ed5..434a869 100644 --- a/client/notifier.py +++ b/client/notifier.py @@ -18,12 +18,15 @@ class Notifier(object): self.timestamp = self.gather(self.timestamp) def __init__(self, profile): + self._logger = logging.getLogger(__name__) self.q = Queue.Queue() self.profile = profile self.notifiers = [] if 'gmail_address' in profile and 'gmail_password' in profile: self.notifiers.append(self.NotificationClient(self.handleEmailNotifications, None)) + else: + self._logger.warning('gmail_address or gmail_password not set in profile, Gmail notifier will not be used') sched = Scheduler() sched.start() |
