summaryrefslogtreecommitdiff
path: root/portato.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-09-15 15:34:21 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-09-15 15:34:21 +0200
commit2a91802cafc270c0102cfd94a44d6831f65cb97a (patch)
treeb22d1f3d3f37772e42ce262c377cb8341660df07 /portato.py
parentadc195c45f67bb3da1b1e37fe6284a72c74f5c9d (diff)
downloadportato-2a91802cafc270c0102cfd94a44d6831f65cb97a.tar.gz
portato-2a91802cafc270c0102cfd94a44d6831f65cb97a.tar.bz2
portato-2a91802cafc270c0102cfd94a44d6831f65cb97a.zip
Add a log-file
Diffstat (limited to '')
-rwxr-xr-xportato.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/portato.py b/portato.py
index c2b861e..7b87262 100755
--- a/portato.py
+++ b/portato.py
@@ -20,7 +20,7 @@ import atexit
import gettext, locale
from optparse import OptionParser, SUPPRESS_HELP
-from portato import get_listener
+from portato import get_listener, log
from portato.helper import debug, info
from portato.constants import VERSION, LOCALE_DIR, APP, SU_COMMAND
@@ -49,6 +49,8 @@ def main ():
atexit.register(get_listener().close)
if options.nofork or os.getuid() == 0: # start GUI
+ log.start(file = True) # start logging to file
+
from portato.gui import run
info("%s v. %s", _("Starting Portato"), VERSION)