logger: for mediaserver

This commit is contained in:
Intel1
2018-01-25 17:41:50 -05:00
committed by GitHub
parent fe4910eb8c
commit 9eadf04e3b

View File

@@ -46,3 +46,8 @@ def debug(texto=""):
def error(texto=""):
logger_object.error(unicode(str(texto), "utf-8", "ignore").replace("\n", "\n" + " " * 67))
class WebErrorException(Exception):
def __init__(self, *args, **kwargs):
Exception.__init__(self, *args, **kwargs)