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