diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-10-14 14:09:44 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-10-14 14:57:33 +0300 |
commit | e9007a842c179e5b9861dbd6c868396c50c52be1 (patch) | |
tree | 45be28b40d4c7e2e5445af920ebeea591949aeef /ick_controller.py | |
parent | 4ece3e95eb0122bfa122fd6a1bfeb5eea2531478 (diff) | |
download | ick2-e9007a842c179e5b9861dbd6c868396c50c52be1.tar.gz |
Fix: log startup to stderr (hence syslog), instead of a file
Also, put log files in /var/log, not /tmp
Diffstat (limited to 'ick_controller.py')
-rw-r--r-- | ick_controller.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ick_controller.py b/ick_controller.py index 59ac86a..a7a1c51 100644 --- a/ick_controller.py +++ b/ick_controller.py @@ -59,7 +59,7 @@ def load_config(filename, defconf): def main(): logger = logging.getLogger() logger.setLevel(logging.DEBUG) - handler = logging.FileHandler('/tmp/ick.log') + handler = logging.StreamHandler(sys.stderr) logger.addHandler(handler) logging.info('Starting ick controller main program') |