diff --git a/telegram-notify-daemon b/telegram-notify-daemon index 053e9b5..aecfe0e 100755 --- a/telegram-notify-daemon +++ b/telegram-notify-daemon @@ -253,11 +253,13 @@ def checkPIDFile(): open(PIDFile,'w+').write("%s\n" % str(os.getpid())) logger.info('Created PIDfile %s' % PIDFile) + def delPIDFile(): PIDFile = configParser.get('general', 'pid_file') os.remove(PIDFile) logger.info('Removed PIDfile %s' % PIDFile) + def checkSpoolDir(): spool_dir = configParser.get('general', 'spool_dir') if not os.path.isdir(spool_dir): @@ -273,7 +275,7 @@ def initBot(): global bot global chat_ids chat_ids=[] - logger.info('Allowed users:') + logger.debug('Allowed users:') for p in configParser.sections(): if re.match('^id-.*',p): chat_id={