ngamsJobMAN.py 文件源码

python
阅读 16 收藏 0 点赞 0 评论 0

项目:ngas 作者: ICRAR 项目源码 文件源码
def main():
    #FORMAT = "%(asctime)-15s %(message)s"
    FORMAT = "%(asctime)-15s - %(name)s - %(levelname)s - %(message)s"
    logging.basicConfig(filename='/tmp/NGAS_MWA/log/ngamsJobMAN.log', level=logging.DEBUG, format = FORMAT)
    logger.info('ngamsJobMAN Started.......')

    config = getConfig()
    if (not config):
        exit(1)

    # start the web server supported by bottle and paste
    run(host = config.get('Web Server', 'IpAddress'),
        server = 'paste',
        port = config.getint('Web Server', 'Port'),
        debug = config.getboolean('Web Server', 'Debug'))

    logger.info('ngamsJobMAN Shutdown.......')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号