[daemon] logging CLI output (#6639)

The CLI input is already logged as info level messages. This commit
writes the CLI output as info level logging messages.
This commit is contained in:
Yakun Xu
2021-05-18 18:27:51 -07:00
committed by GitHub
parent 313d1f5d15
commit ea5a5fbd53
+2 -1
View File
@@ -81,7 +81,8 @@ int OutputFormatV(void *aContext, const char *aFormat, va_list aArguments)
VerifyOrExit(rval >= 0, otLogWarnPlat("Failed to format CLI output: %s", strerror(errno)));
VerifyOrExit(sSessionSocket != -1, otLogDebgPlat("%s", buf));
otLogInfoPlat("%s", buf);
VerifyOrExit(sSessionSocket != -1);
#if defined(__linux__)
// Don't die on SIGPIPE