diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/logging.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/logging.c b/src/logging.c index 9e30d5f8..165d8229 100644 --- a/src/logging.c +++ b/src/logging.c @@ -385,7 +385,10 @@ void osmo_vlogp(int subsys, int level, const char *file, int line, * in undefined state. Since _output uses vsnprintf and it may * be called several times, we have to pass a copy of ap. */ va_copy(bp, ap); - _output(tar, subsys, level, file, line, cont, format, bp); + if (tar->raw_output) + tar->raw_output(tar, subsys, level, file, line, cont, format, bp); + else + _output(tar, subsys, level, file, line, cont, format, bp); va_end(bp); } } |