mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 21:33:13 -07:00
Allow custom logfile from env. Fixes #592
This commit is contained in:
parent
8b27748165
commit
a74328e549
1 changed files with 4 additions and 0 deletions
|
@ -208,6 +208,10 @@ def initialize(section=None):
|
|||
|
||||
if __INITIALIZED__:
|
||||
return False
|
||||
|
||||
if os.environ.has_key('NTM_LOGFILE'):
|
||||
LOG_FILE = os.environ['NTM_LOGFILE']
|
||||
LOG_DIR = os.path.split(LOG_FILE)[0]
|
||||
|
||||
if not makeDir(LOG_DIR):
|
||||
print("No log folder, logging to screen only")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue