From 5c67765b9cae359463614b04fe501a0b6f744566 Mon Sep 17 00:00:00 2001 From: Wang Zhiyong Date: Wed, 9 Oct 2024 06:52:54 +0000 Subject: [PATCH] add auth error log --- src/server/bolt_handler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server/bolt_handler.cpp b/src/server/bolt_handler.cpp index 60a320c919..c9d1f8398e 100644 --- a/src/server/bolt_handler.cpp +++ b/src/server/bolt_handler.cpp @@ -259,7 +259,8 @@ std::function(val.at("credentials")); auto galaxy = BoltServer::Instance().StateMachine()->GetGalaxy(); if (!galaxy->ValidateUser(principal, credentials)) { - LOG_ERROR() << "Bolt authentication failed"; + LOG_ERROR() << FMA_FMT( + "Bolt authentication failed, user:{}, password:{}", principal, credentials); bolt::PackStream ps; ps.AppendFailure({{"code", "error"}, {"message", "Authentication failed"}});