views:

30

answers:

0

I was trying to set up a server configuration without having to rely on the tornado.options.parse_command_line() function, but it isn't working properly. It's being parsed, but then tornado just sits on it and doesn't do anything for it. Specifically, I'm using a server.conf file that looks like so:

log_file_prefix = "./logs/errors.log"

and am parsing it via

import tornado.options tornado.options.parse_config_file('./server.conf')

If I were to call tornado.options.options.log_file_prefix it would print './logs/errors.log' but when errors actually occur, nothing gets written.

Using the command line flagg --log_file_prefix="./logs/errors.log" does, however, work.