summaryrefslogtreecommitdiff
path: root/src/state_machine.hpp
diff options
context:
space:
mode:
authorCzarnowski, Przemyslaw <przemyslaw.hawrylewicz.czarnowski@intel.com>2021-05-06 16:22:34 +0300
committerCzarnowski, Przemyslaw <przemyslaw.hawrylewicz.czarnowski@intel.com>2021-05-06 17:18:07 +0300
commitcf73c528b695ffff93523722b2ec9f40e81bd98b (patch)
tree03e12392cb88f49d0d1f5297d41baac8aa8fc1a1 /src/state_machine.hpp
parentc78bf93d62126d1e777f4f72322290b40f0121f4 (diff)
downloadvirtual-media-cf73c528b695ffff93523722b2ec9f40e81bd98b.tar.xz
Change log level to Info
Due to security reasons "user/username" has to be removed from the information that is logged by application. Sensitive data has been moved to "Debug"" level (lowest one) and default one has moved one level up to "Info". Also some important information allowing to catch basic errors has been upgraded to "Info". Tested: Manually, mounting both Legacy mode remote types (HTTPs and CIFS) and checking if journal for VirtualMedia service does not contain sensitive information. Change-Id: Ie6c3a79c94637e3632af76daf957e986b2dd3b6d Signed-off-by: Czarnowski, Przemyslaw <przemyslaw.hawrylewicz.czarnowski@intel.com>
Diffstat (limited to 'src/state_machine.hpp')
-rw-r--r--src/state_machine.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/state_machine.hpp b/src/state_machine.hpp
index f9772fe..3e525cf 100644
--- a/src/state_machine.hpp
+++ b/src/state_machine.hpp
@@ -52,8 +52,7 @@ struct MountPointStateMachine : public interfaces::MountPointStateMachine
void changeState(std::unique_ptr<BasicState> newState)
{
state = std::move(newState);
- LogMsg(Logger::Debug, name, " state changed to ",
- state->getStateName());
+ LogMsg(Logger::Info, name, " state changed to ", state->getStateName());
if (newState = state->onEnter())
{
changeState(std::move(newState));
@@ -63,7 +62,7 @@ struct MountPointStateMachine : public interfaces::MountPointStateMachine
template <class EventT>
void emitEvent(EventT&& event)
{
- LogMsg(Logger::Debug, name, " received ", event.eventName, " while in ",
+ LogMsg(Logger::Info, name, " received ", event.eventName, " while in ",
state->getStateName());
if (auto newState = state->handleEvent(std::move(event)))