Skip to content

Commit

Permalink
Enter in log display if log callback is configured
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandro Kalatozishvili committed Oct 25, 2024
1 parent ffaa423 commit 0b36854
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sys/xlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ void XLog_Display(xlog_flag_t eFlag, xbool_t bNewLine, const char *pFormat, ...)
xlog_cfg_t *pCfg = &g_xlog.config;

if ((XLOG_FLAGS_CHECK(g_xlog.config.nFlags, eFlag)) &&
(g_xlog.config.bToScreen || g_xlog.config.bToFile))
(g_xlog.config.bToScreen || g_xlog.config.bToFile || g_xlog.config.logCallback))
{
xlog_ctx_t ctx;
XTime_Get(&ctx.time);
Expand Down
2 changes: 1 addition & 1 deletion src/xver.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#define XUTILS_VERSION_MAX 2
#define XUTILS_VERSION_MIN 5
#define XUTILS_BUILD_NUMBER 54
#define XUTILS_BUILD_NUMBER 55

#ifdef __cplusplus
extern "C" {
Expand Down

0 comments on commit 0b36854

Please sign in to comment.