Daemonize options remove
This commit is contained in:
1 parent
1fb2e2947e
commit
fea3629cfe
1 file changed
+2
-3
@@ -71,7 +71,6 @@ def runCouchPotato(options, base_path, args, handle = None):
|
|||||||
Env.set('cache_dir', os.path.join(data_dir, 'cache'))
|
Env.set('cache_dir', os.path.join(data_dir, 'cache'))
|
||||||
Env.set('cache', FileSystemCache(os.path.join(Env.get('cache_dir'), 'python')))
|
Env.set('cache', FileSystemCache(os.path.join(Env.get('cache_dir'), 'python')))
|
||||||
Env.set('console_log', options.console_log)
|
Env.set('console_log', options.console_log)
|
||||||
Env.set('daemonize', options.daemonize)
|
|
||||||
Env.set('quiet', options.quiet)
|
Env.set('quiet', options.quiet)
|
||||||
Env.set('binary_port', options.binary_port)
|
Env.set('binary_port', options.binary_port)
|
||||||
Env.set('args', args)
|
Env.set('args', args)
|
||||||
@@ -96,7 +95,7 @@ def runCouchPotato(options, base_path, args, handle = None):
|
|||||||
logger.setLevel(level)
|
logger.setLevel(level)
|
||||||
|
|
||||||
# To screen
|
# To screen
|
||||||
if (debug or options.console_log) and not options.daemonize and not options.quiet:
|
if (debug or options.console_log) and not options.quiet:
|
||||||
hdlr = logging.StreamHandler(sys.stderr)
|
hdlr = logging.StreamHandler(sys.stderr)
|
||||||
hdlr.setFormatter(formatter)
|
hdlr.setFormatter(formatter)
|
||||||
logger.addHandler(hdlr)
|
logger.addHandler(hdlr)
|
||||||
@@ -152,7 +151,7 @@ def runCouchPotato(options, base_path, args, handle = None):
|
|||||||
from couchpotato import app
|
from couchpotato import app
|
||||||
api_key = Env.setting('api_key')
|
api_key = Env.setting('api_key')
|
||||||
url_base = '/' + Env.setting('url_base').lstrip('/') if Env.setting('url_base') else ''
|
url_base = '/' + Env.setting('url_base').lstrip('/') if Env.setting('url_base') else ''
|
||||||
reloader = debug is True and not options.daemonize and not options.binary_port
|
reloader = debug is True and not options.binary_port
|
||||||
|
|
||||||
# Basic config
|
# Basic config
|
||||||
app.secret_key = api_key
|
app.secret_key = api_key
|
||||||
|
|||||||
Reference in new issue
Block a user