Skip to content

Commit

Permalink
Changed log name environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
icarosadero committed Jun 30, 2024
1 parent d2b660a commit 3359fac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyduino/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -18,4 +18,4 @@
logging.FileHandler(log_file_path),
logging.StreamHandler()
]
)
)

0 comments on commit 3359fac

Please sign in to comment.