Made logging default to the WARNING level when in an application bundle.

This commit is contained in:
Lexi 2011-08-10 13:49:23 +01:00
parent a22538732b
commit c729c7326c

6
irc.py
View file

@ -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):