Made logging default to the WARNING level when in an application bundle.
This commit is contained in:
parent
a22538732b
commit
c729c7326c
1 changed files with 5 additions and 1 deletions
6
irc.py
6
irc.py
|
@ -11,7 +11,11 @@ from dataobjs import Mood, PesterProfile
|
|||
from generic import PesterList
|
||||
from version import _pcVersion
|
||||
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
import sys, os
|
||||
if sys.platform == "darwin" and os.path.abspath('.').find('.app') != -1:
|
||||
logging.basicConfig(level=logging.WARNING)
|
||||
else:
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
|
||||
class PesterIRC(QtCore.QThread):
|
||||
def __init__(self, config, window):
|
||||
|
|
Loading…
Reference in a new issue