mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
Make log dir before creating pid. Fixes #482
This commit is contained in:
parent
85a256fa58
commit
5773472eeb
1 changed files with 3 additions and 3 deletions
|
@ -201,6 +201,9 @@ def initialize(section=None):
|
|||
if __INITIALIZED__:
|
||||
return False
|
||||
|
||||
if not makeDir(LOG_DIR):
|
||||
print("!!! No log folder, logging to screen only!")
|
||||
|
||||
MYAPP = RunningProcess()
|
||||
while MYAPP.alreadyrunning():
|
||||
print("!!! Waiting for existing session to end!")
|
||||
|
@ -231,9 +234,6 @@ def initialize(section=None):
|
|||
else:
|
||||
sys.exit(1)
|
||||
|
||||
if not makeDir(LOG_DIR):
|
||||
print("!!! No log folder, logging to screen only!")
|
||||
|
||||
# init logging
|
||||
logger.ntm_log_instance.initLogging()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue