mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 13:53:15 -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__:
|
if __INITIALIZED__:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
if not makeDir(LOG_DIR):
|
||||||
|
print("!!! No log folder, logging to screen only!")
|
||||||
|
|
||||||
MYAPP = RunningProcess()
|
MYAPP = RunningProcess()
|
||||||
while MYAPP.alreadyrunning():
|
while MYAPP.alreadyrunning():
|
||||||
print("!!! Waiting for existing session to end!")
|
print("!!! Waiting for existing session to end!")
|
||||||
|
@ -231,9 +234,6 @@ def initialize(section=None):
|
||||||
else:
|
else:
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
if not makeDir(LOG_DIR):
|
|
||||||
print("!!! No log folder, logging to screen only!")
|
|
||||||
|
|
||||||
# init logging
|
# init logging
|
||||||
logger.ntm_log_instance.initLogging()
|
logger.ntm_log_instance.initLogging()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue