author | melunko |
Wed May 16 16:13:16 2007 +0100 (2007-05-16) | |
branch | trunk |
changeset 668 | 7a6b3fa42278 |
parent 565 | ed34b1dab103 |
permissions | -rw-r--r-- |
1 #!/usr/bin/env python
3 import sys
4 import os
5 import logging as log
6 from lib.server import serve_forever, load_plugins_transcoders
8 log_level = log.INFO
9 for p in sys.argv[1:]:
10 if p == "-v" or p == "--verbose":
11 log_level -= 10
13 log.basicConfig(level=log_level,
14 format=("### %(asctime)s %(name)-18s \t%(levelname)-8s "
15 "\t%(message)s"),
16 datefmt="%Y-%m-%d %H:%M:%S")
18 pd = os.path.join("plugins", "transcoders")
19 load_plugins_transcoders(pd)
20 serve_forever()