From 5e15b93ff2a26d63b2b3f2ceb09020cb5abab1b4 Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Wed, 26 Apr 2023 06:41:36 -0700 Subject: [PATCH] [daemon] remove log of CLI input (#8994) This commit removes logging of the CLI input in `Daemon::Process()`. This ensures that sensitive info (e.g. dataset and/or network key) is not emitted in the logs. The CLI input/output can be logged using the CLI related configs `OPENTHREAD_CONFIG_CLI_LOG_INPUT_OUTPUT_ENABLE` and/or `OPENTHREAD_CONFIG_CLI_LOG_INPUT_OUTPUT_LEVEL`. --- src/posix/platform/daemon.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/posix/platform/daemon.cpp b/src/posix/platform/daemon.cpp index acf897eb0..731b4f2b7 100644 --- a/src/posix/platform/daemon.cpp +++ b/src/posix/platform/daemon.cpp @@ -341,7 +341,6 @@ void Daemon::Process(const otSysMainloopContext &aContext) if (rval > 0) { buffer[rval] = '\0'; - otLogInfoPlat("> %s", reinterpret_cast(buffer)); otCliInputLine(reinterpret_cast(buffer)); } else