Skip to content

Commit 0fa75e6

Browse files
committed
Print out the UMV version in util_log_init()
Signed-off-by: Lukasz Dorau <[email protected]>
1 parent 8fe7ade commit 0fa75e6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/utils/utils_log.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
#include <string.h>
2727
#include <time.h>
2828

29+
#include "umf.h"
30+
2931
#include "utils_assert.h"
3032
#include "utils_common.h"
3133
#include "utils_log.h"
@@ -290,8 +292,11 @@ void util_log_init(void) {
290292
loggerConfig.flushLevel = LOG_FATAL;
291293
}
292294

295+
int umf_ver = umfGetCurrentVersion();
293296
LOG_INFO(
294-
"Logger enabled (level: %s, flush: %s, pid: %s, timestamp: %s)",
297+
"Logger enabled (umf_version: %i.%i, level: %s, flush: %s, pid: %s, "
298+
"timestamp: %s)",
299+
UMF_MAJOR_VERSION(umf_ver), UMF_MINOR_VERSION(umf_ver),
295300
level_to_str(loggerConfig.level), level_to_str(loggerConfig.flushLevel),
296301
bool_to_str(loggerConfig.pid), bool_to_str(loggerConfig.timestamp));
297302
}

0 commit comments

Comments
 (0)