forked from M-Labs/artiq
artiq_master: directly log, explicit imports
This commit is contained in:
parent
1891725e12
commit
6830703ec6
|
@ -6,7 +6,8 @@ import atexit
|
||||||
import os
|
import os
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from artiq.tools import *
|
from artiq.tools import (simple_network_args, atexit_register_coroutine,
|
||||||
|
bind_address_from_args)
|
||||||
from artiq.protocols.pc_rpc import Server as RPCServer
|
from artiq.protocols.pc_rpc import Server as RPCServer
|
||||||
from artiq.protocols.sync_struct import Publisher
|
from artiq.protocols.sync_struct import Publisher
|
||||||
from artiq.protocols.logging import Server as LoggingServer
|
from artiq.protocols.logging import Server as LoggingServer
|
||||||
|
@ -115,7 +116,7 @@ def main():
|
||||||
bind, args.port_logging))
|
bind, args.port_logging))
|
||||||
atexit_register_coroutine(server_logging.stop)
|
atexit_register_coroutine(server_logging.stop)
|
||||||
|
|
||||||
loop.call_soon(logger.info, "running, bound to %s", bind)
|
logger.info("running, bound to %s", bind)
|
||||||
loop.run_forever()
|
loop.run_forever()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
Loading…
Reference in New Issue