morphbr@565: #!/usr/bin/env python morphbr@565: morphbr@565: import sys morphbr@565: import os morphbr@565: import logging as log morphbr@565: from lib.server import serve_forever, load_plugins_transcoders morphbr@565: morphbr@565: log_level = log.INFO morphbr@565: for p in sys.argv[1:]: morphbr@565: if p == "-v" or p == "--verbose": morphbr@565: log_level -= 10 morphbr@565: morphbr@565: log.basicConfig(level=log_level, morphbr@577: format=("### %(asctime)s %(name)-18s \t%(levelname)-8s " morphbr@565: "\t%(message)s"), morphbr@565: datefmt="%Y-%m-%d %H:%M:%S") morphbr@565: morphbr@565: pd = os.path.join("plugins", "transcoders") morphbr@565: load_plugins_transcoders(pd) morphbr@565: serve_forever()