123456789101112131415 |
- #!/usr/bin/env python3
- import simple_http_server.server as server
- import req
- import logging
- logging.basicConfig(format='%(asctime)s - %(filename)s[line:%(lineno)d] - %(levelname)s: %(message)s',
- level=logging.DEBUG,
- filename='/var/log/aligenie.log',
- filemode='a')
- def main(*args):
- server.start(port=19090)
- if __name__ == "__main__":
- main()
|