diff --git a/tools/python/jwutils/log.py b/tools/python/jwutils/log.py index 4f550e6..07fea2e 100644 --- a/tools/python/jwutils/log.py +++ b/tools/python/jwutils/log.py @@ -88,7 +88,11 @@ def slog_m(prio, *args, **kwargs): # export margs += '\n'.join([str(elem) for elem in a]) continue margs += ' ' + str(a) - caller = get_caller_pos(1) + if 'caller' not in kwargs: + caller = get_caller_pos(1) + else: + caller = kwargs['caller'] + del kwargs['caller'] for line in margs[1:].split('\n'): slog(prio, line, **kwargs, caller=caller)