mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-02-06 15:05:19 +00:00
Avoid reporting timestamp if custom logger is used (#2905)
Loggers (e.g. glog) usually come with instrumentation to add timestamp and other information when reporting. That results in the timestamp being reported twice, making the output confusing.
This commit is contained in:
parent
18529253d8
commit
b5022015fc
|
@ -43,7 +43,9 @@ bh_log(LogLevel log_level, const char *file, int line, const char *fmt, ...)
|
||||||
"%02" PRIu32 ":%02" PRIu32 ":%02" PRIu32 ":%03" PRIu32, h, m, s,
|
"%02" PRIu32 ":%02" PRIu32 ":%02" PRIu32 ":%03" PRIu32, h, m, s,
|
||||||
mills);
|
mills);
|
||||||
|
|
||||||
|
#ifndef BH_VPRINTF
|
||||||
os_printf("[%s - %" PRIXPTR "]: ", buf, (uintptr_t)self);
|
os_printf("[%s - %" PRIXPTR "]: ", buf, (uintptr_t)self);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (file)
|
if (file)
|
||||||
os_printf("%s, line %d, ", file, line);
|
os_printf("%s, line %d, ", file, line);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user