mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 21:21:15 -07:00
Replace sys.stderr with logger
This commit is contained in:
parent
570ebb4f73
commit
bbb6e46515
2 changed files with 2 additions and 3 deletions
|
@ -131,8 +131,7 @@ def main():
|
||||||
|
|
||||||
if args.daemon:
|
if args.daemon:
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32':
|
||||||
sys.stderr.write(
|
logger.warn("Daemonizing not supported under Windows, starting normally")
|
||||||
"Daemonizing not supported under Windows, starting normally\n")
|
|
||||||
else:
|
else:
|
||||||
plexpy.DAEMON = True
|
plexpy.DAEMON = True
|
||||||
plexpy.QUIET = True
|
plexpy.QUIET = True
|
||||||
|
|
|
@ -264,7 +264,7 @@ def initialize(options):
|
||||||
cherrypy.engine.start()
|
cherrypy.engine.start()
|
||||||
cherrypy.engine.block()
|
cherrypy.engine.block()
|
||||||
except IOError:
|
except IOError:
|
||||||
sys.stderr.write('Failed to start on port: %i. Is something else running?\n' % (options['http_port']))
|
logger.error("Tautulli WebStart :: Failed to start on port: %i. Is something else running?" % options['http_port'])
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
cherrypy.server.wait()
|
cherrypy.server.wait()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue