Skip to content

Commit

Permalink
permissions and log level
Browse files Browse the repository at this point in the history
  • Loading branch information
MorkHub committed Jun 20, 2017
1 parent 57b42a4 commit 78cbbcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions customlogging.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"""

logging.basicConfig(format=CONF.get('log_format','[%(asctime)s] [%(levelname)s] %(message)s'),stream=sys.stdout)
logger = logging.getLogger('pedantbot')
logging.basicConfig(format=CONF.get('log_format','[%(asctime)s] [%(levelname)s] %(message)s'), stream=sys.stdout, level=logging.INFO)
logger = logging.getLogger('discord')
logger.setLevel(logging.INFO)

log_handler = logging.handlers.RotatingFileHandler(CONF.get('dir_pref','/home/shwam3/')+CONF.get('logfile','{}.log'.format(__file__)), 'a', backupCount=5, delay=True)
Expand Down

0 comments on commit 78cbbcd

Please sign in to comment.