http: Format "server running" log msg like MPD
By removing the http://... URL in the log output, we hopefully remove the
dubious connection between hostname/port configuration and the URL you'll
actually use to browse the Mopidy web server.
Example log output with this change:
...
INFO Starting Mopidy frontends: HttpFrontend, MpdFrontend
INFO HTTP server running at [::ffff:127.0.0.1]:6680
INFO MPD server running at [::ffff:127.0.0.1]:6600
This commit is contained in:
parent
f9755b562c
commit
e9243357ae
@ -14,7 +14,7 @@ import tornado.websocket
|
||||
from mopidy import exceptions, models, zeroconf
|
||||
from mopidy.core import CoreListener
|
||||
from mopidy.http import handlers
|
||||
from mopidy.utils import encoding, formatting
|
||||
from mopidy.utils import encoding, formatting, network
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
@ -54,7 +54,8 @@ class HttpFrontend(pykka.ThreadingActor, CoreListener):
|
||||
|
||||
def _startup(self):
|
||||
logger.info(
|
||||
'HTTP server running at http://%s:%s', self.hostname, self.port)
|
||||
'HTTP server running at [%s]:%s',
|
||||
network.format_hostname(self.hostname), self.port)
|
||||
tornado.ioloop.IOLoop.instance().start()
|
||||
|
||||
def _shutdown(self):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user