From c5c2e61e0623430dbb76f30a280001f90b32ba43 Mon Sep 17 00:00:00 2001 From: Ruud Date: Fri, 14 Jun 2013 11:22:29 +0200 Subject: [PATCH] Log startup errors --- couchpotato/runner.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/couchpotato/runner.py b/couchpotato/runner.py index 57db5ab..475fffa 100644 --- a/couchpotato/runner.py +++ b/couchpotato/runner.py @@ -14,6 +14,7 @@ import os.path import shutil import sys import time +import traceback import warnings def getOptions(base_path, args): @@ -289,10 +290,11 @@ def runCouchPotato(options, base_path, args, data_dir = None, log_dir = None, En server.listen(config['port'], config['host']) loop.start() except Exception, e: + log.error('Failed starting: %s', traceback.format_exc()) try: nr, msg = e if nr == 48: - log.info('Already in use, try %s more time after few seconds', restart_tries) + log.info('Port (%s) needed for CouchPotato is already in use, try %s more time after few seconds', (config.get('port'), restart_tries)) time.sleep(1) restart_tries -= 1