From 3d0d039626602fc1792734d6420661b8050eaace Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Mon, 14 May 2018 11:00:21 +0200 Subject: [PATCH] Added absolute path to log directory. --- deluge_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge_cli.py b/deluge_cli.py index 372580e..5ed592e 100755 --- a/deluge_cli.py +++ b/deluge_cli.py @@ -49,7 +49,7 @@ BASE_DIR = os.path.dirname(os.path.abspath(__file__)) logger = logging.getLogger('deluge_cli') logger.setLevel(logging.DEBUG) -fh = logging.FileHandler('deluge_cli.log') +fh = logging.FileHandler(os.path.join(BASE_DIR, 'deluge_cli.log')) fh.setLevel(logging.DEBUG) ch = logging.StreamHandler() ch.setLevel(logging.ERROR)