mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2026-03-23 04:51:59 -06:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b2dca79a45 |
@@ -21,9 +21,10 @@ def setup_logger():
|
||||
"""
|
||||
# Set logging
|
||||
lgout = logging.StreamHandler()
|
||||
# Logfile in the project root
|
||||
project_root = path.dirname(path.dirname(path.realpath(__file__)))
|
||||
logfile_path = path.join(project_root, "sync.log")
|
||||
|
||||
# Create log file in current working directory
|
||||
working_dir = path.realpath(path.curdir)
|
||||
logfile_path = path.join(working_dir, "sync.log")
|
||||
lgfile = logging.FileHandler(logfile_path)
|
||||
|
||||
logging.basicConfig(
|
||||
|
||||
Reference in New Issue
Block a user