on-win notification
- added notifications when a won giveaway is detected - a notification will only be sent once a day
This commit is contained in:
parent
405dd11a9b
commit
3d3752de22
6 changed files with 99 additions and 50 deletions
|
@ -5,7 +5,7 @@ from logging.handlers import RotatingFileHandler
|
|||
|
||||
log_format = "%(levelname)s %(asctime)s - %(message)s"
|
||||
logging.basicConfig(
|
||||
handlers=[RotatingFileHandler('../config/debug.log', maxBytes=100000, backupCount=10)],
|
||||
handlers=[RotatingFileHandler('../config/debug.log', maxBytes=500000, backupCount=10)],
|
||||
level=logging.DEBUG,
|
||||
format=log_format)
|
||||
|
||||
|
@ -14,6 +14,7 @@ stream.setLevel(logging.INFO)
|
|||
stream_format = logging.Formatter(log_format)
|
||||
stream.setFormatter(stream_format)
|
||||
|
||||
|
||||
def get_logger(name):
|
||||
l = logging.getLogger(name)
|
||||
l.addHandler(stream)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue