diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2008-09-15 15:34:21 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2008-09-15 15:34:21 +0200 |
commit | 2a91802cafc270c0102cfd94a44d6831f65cb97a (patch) | |
tree | b22d1f3d3f37772e42ce262c377cb8341660df07 /portato.py | |
parent | adc195c45f67bb3da1b1e37fe6284a72c74f5c9d (diff) | |
download | portato-2a91802cafc270c0102cfd94a44d6831f65cb97a.tar.gz portato-2a91802cafc270c0102cfd94a44d6831f65cb97a.tar.bz2 portato-2a91802cafc270c0102cfd94a44d6831f65cb97a.zip |
Add a log-file
Diffstat (limited to '')
-rwxr-xr-x | portato.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |