From da0a9f5a8f2bac37d62ba9a91a80adf70f30adc0 Mon Sep 17 00:00:00 2001 From: Dave Shawley Date: Fri, 28 Aug 2015 10:57:06 -0400 Subject: [PATCH] Set the log_function in Runner.start_server. --- sprockets/http/runner.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sprockets/http/runner.py b/sprockets/http/runner.py index 14fc7ba..ffa5d88 100644 --- a/sprockets/http/runner.py +++ b/sprockets/http/runner.py @@ -11,6 +11,8 @@ import signal from tornado import httpserver, ioloop +import sprockets.logging + class Runner(object): """ @@ -63,6 +65,8 @@ class Runner(object): self.logger.info('starting 1 process on port %d', port_number) self.server.listen(port_number) else: + self.application.settings.setdefault( + 'log_function', sprockets.logging.tornado_log_function) self.logger.info('starting processes on port %d', port_number) self.server.bind(port_number) self.server.start(0)