def error(texto=""): if loggeractive: texto = " [" + get_caller() + "] " + encode_log(texto) xbmc.log("######## ERROR #########", xbmc.LOGNOTICE) xbmc.log(texto, xbmc.LOGNOTICE)