summaryrefslogtreecommitdiff
path: root/daemon.py
blob: 8a7c971474f874a01f45755dc65cf51e81fb1f47 (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/python3
# coding=utf-8

if __name__ == '__main__':
    import os
    import logging
    logging.basicConfig(filename=os.environ.get('CODEQ_SERVER_LOG') or 'codeq-server.log', level=logging.DEBUG, format='%(asctime)s %(levelname)s %(message)s')
    import server
    server.socket.serve_forever()