mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
Added the initial implementation of the server side PR service. (Bitbake rev: 4d0e79e5591ff58ce35c7fb96f6e9217ddc27466) Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
12 lines
324 B
Python
12 lines
324 B
Python
__version__ = "1.0.0"
|
|
|
|
import os, time
|
|
import sys,logging
|
|
|
|
def init_logger(logfile, loglevel):
|
|
numeric_level = getattr(logging, loglevel.upper(), None)
|
|
if not isinstance(numeric_level, int):
|
|
raise ValueError('Invalid log level: %s' % loglevel)
|
|
logging.basicConfig(level=numeric_level, filename=logfile)
|
|
|