浏览代码

Add a tag before notifications

Olivier Marty 8 年之前
父节点
当前提交
9c72714cfd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      notification.py

+ 1 - 1
notification.py

@@ -18,6 +18,6 @@ def notify(message):
      elif method == 'sendmail':
         run(['mail', '-s', conf['sendmail']['object'], conf['sendmail']['to']], input=message.encode(), check=True)
      elif method == 'print':
-        print(message)
+        print("[NOTIFICATION] " + message)
      else:
         raise NotImplementedError('notification method = ' + method + ' not known !')