From 3359fac75bf66d74e014e58ee5c7ad2e0c7b5d20 Mon Sep 17 00:00:00 2001 From: Icaro Costa Date: Sun, 30 Jun 2024 16:10:42 -0300 Subject: [PATCH] Changed log name environment variable --- pyduino/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyduino/__init__.py b/pyduino/__init__.py index 74adc29..a7cfe7c 100644 --- a/pyduino/__init__.py +++ b/pyduino/__init__.py @@ -8,7 +8,7 @@ __location__ = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__))) -log_file_path = os.environ.get('PYDUINO_SLAVE_LOG','/var/log/pyduino/slave.log') +log_file_path = os.environ.get('PYDUINO_LOG','/var/log/pyduino/pyduino.log') os.makedirs(os.path.dirname(log_file_path), exist_ok=True) logging.basicConfig( @@ -18,4 +18,4 @@ logging.FileHandler(log_file_path), logging.StreamHandler() ] -) \ No newline at end of file +)