summaryrefslogtreecommitdiff
path: root/client/notifier.py
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-10-01 13:47:23 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2014-10-01 13:47:23 +0200
commit2bcceb3fe037355dbdfdc46ffbd036c7f719a7bf (patch)
treea95bc434d4d6cc26e3539de31bc7f1e335ae6a1c /client/notifier.py
parent4c62c3c39d9c050c98b18c5d88c736fbb2554992 (diff)
parent63f4a7c006d54c68a534f0910ed1cb601ed32edb (diff)
downloadjasper-client-2bcceb3fe037355dbdfdc46ffbd036c7f719a7bf.tar.gz
jasper-client-2bcceb3fe037355dbdfdc46ffbd036c7f719a7bf.zip
Merge pull request #201 from Holzhaus/add-more-logging
Add more logging
Diffstat (limited to 'client/notifier.py')
-rw-r--r--client/notifier.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/notifier.py b/client/notifier.py
index 6911ed5..2ae66f8 100644
--- a/client/notifier.py
+++ b/client/notifier.py
@@ -3,8 +3,6 @@ import Queue
from modules import Gmail
from apscheduler.scheduler import Scheduler
import logging
-logging.basicConfig()
-
class Notifier(object):
@@ -18,12 +16,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()