mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-19 04:47:54 +00:00
Temporaru drop old tornado logging
This commit is contained in:
parent
a06d935ef4
commit
a9a09cc0bc
@ -75,13 +75,23 @@ def main():
|
|||||||
|
|
||||||
current_year = datetime.date.today().year
|
current_year = datetime.date.today().year
|
||||||
|
|
||||||
user_log = logging.getLogger('user_facing')
|
|
||||||
if not options.quiet:
|
# TODO: Renable the test when we will have command line
|
||||||
# Send user facing messages to stdout.
|
# user_log = logging.getLogger('user_facing')
|
||||||
stream_handler = logging.StreamHandler(sys.stdout)
|
# if not options.quiet:
|
||||||
stream_handler.addFilter(logging.Filter(name='user_facing'))
|
# # Send user facing messages to stdout.
|
||||||
user_log.addHandler(stream_handler)
|
# stream_handler = logging.StreamHandler(sys.stdout)
|
||||||
user_log.propagate = False
|
# stream_handler.addFilter(logging.Filter(name='user_facing'))
|
||||||
|
# user_log.addHandler(stream_handler)
|
||||||
|
# user_log.propagate = False
|
||||||
|
# END OLD LOG CODE
|
||||||
|
root_log = logging.getLogger()
|
||||||
|
root_log.setLevel(logging.DEBUG)
|
||||||
|
console_log = logging.StreamHandler(sys.stdout)
|
||||||
|
console_log.setLevel(logging.DEBUG)
|
||||||
|
root_log.addHandler(console_log)
|
||||||
|
user_log = root_log
|
||||||
|
# FIXME END Temporary
|
||||||
|
|
||||||
user_log.info("GNS3 server version {}".format(__version__))
|
user_log.info("GNS3 server version {}".format(__version__))
|
||||||
user_log.info("Copyright (c) 2007-{} GNS3 Technologies Inc.".format(current_year))
|
user_log.info("Copyright (c) 2007-{} GNS3 Technologies Inc.".format(current_year))
|
||||||
@ -104,7 +114,9 @@ def main():
|
|||||||
log.critical("the current working directory doesn't exist")
|
log.critical("the current working directory doesn't exist")
|
||||||
return
|
return
|
||||||
|
|
||||||
server = Server(options.host, options.port, options.console_bind_to_any)
|
# TODO: Renable console_bind_to_any when we will have command line parsing
|
||||||
|
#server = Server(options.host, options.port, options.console_bind_to_any)
|
||||||
|
server = Server("127.0.0.1", 8000, False)
|
||||||
server.run()
|
server.run()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
Reference in New Issue
Block a user