log version

This commit is contained in:
Jan Gerber 2015-03-22 19:34:42 +05:30
commit ce47b8a64d
2 changed files with 8 additions and 2 deletions

View file

@ -26,6 +26,8 @@ import websocket
import logging
logger = logging.getLogger('oml')
class MainHandler(OMLHandler):
def get(self, path):
@ -111,6 +113,7 @@ def run():
host = settings.server['address']
url = 'http://%s:%s/' % (host, settings.server['port'])
print('open browser at %s' % url)
logger.debug('Starting OML %s at %s', settings.VERSION, url)
def shutdown():
if state.downloads: