mirror of https://github.com/wolfSSL/wolfssh.git
log to stdout by printf
parent
a4c1cb460b
commit
c06a8e5c6a
|
@ -147,7 +147,11 @@ void DefaultLoggingCb(enum wolfSSH_LogLevel level, const char *const msgStr)
|
|||
}
|
||||
}
|
||||
#endif /* WOLFSSH_NO_TIMESTAMP */
|
||||
#ifndef WOLFSSH_LOG_PRINTF
|
||||
fprintf(stdout, "%s[%s] %s\r\n", timeStr, GetLogStr(level), msgStr);
|
||||
#else
|
||||
printf("%s[%s] %s\r\n", timeStr, GetLogStr(level), msgStr);
|
||||
#endif
|
||||
}
|
||||
#endif /* WOLFSSH_NO_DEFAULT_LOGGING_CB */
|
||||
|
||||
|
|
Loading…
Reference in New Issue