From 8d9e8e5f8d9b1a421923467416237b63a02a38ca Mon Sep 17 00:00:00 2001 From: Dongik Lee Date: Tue, 20 May 2025 13:24:05 +0900 Subject: [PATCH] Modify log level Change-Id: I73ef5cbdfd508b81bb1e6f5b240c849ca3f6803e --- src/hal_backend_security_auth.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/hal_backend_security_auth.cpp b/src/hal_backend_security_auth.cpp index 4602570..0b81234 100644 --- a/src/hal_backend_security_auth.cpp +++ b/src/hal_backend_security_auth.cpp @@ -191,12 +191,12 @@ void hal_backend_security_auth::prepare_password_file() return; } - LOGE("m_user : " << m_user << " pwdFile : " << pwdFile << " pwdFile is Creating."); + LOGD("m_user : " << m_user << " pwdFile : " << pwdFile << " pwdFile is Creating."); //create file write_memory_to_file(m_user); } else { //if file exists, load data - LOGE("pwdFile : " << pwdFile << " pwdFile found"); - LOGE("m_user : " << m_user << " password file. Opening."); + LOGD("pwdFile : " << pwdFile << " pwdFile found"); + LOGD("m_user : " << m_user << " password file. Opening."); try { load_memory_from_file(oldVersionPwdFile); } catch (...) { @@ -217,8 +217,8 @@ void hal_backend_security_auth::prepare_attempt_file() LOGE("m_user : " << m_user << " attempt file. Creating."); write_attempt_to_file(m_user); } else { - LOGE("attemptFile : " << attemptFile << " found"); - LOGE("m_user : " << m_user << " attempt file. Opening."); + LOGD("attemptFile : " << attemptFile << " found"); + LOGD("m_user : " << m_user << " attempt file. Opening."); std::ifstream AttemptFile(attemptFile); if (!AttemptFile) { LOGE("Failed to open " << m_user << " attempt file."); @@ -335,7 +335,7 @@ int hal_backend_security_auth::set_max_history_size(uid_t user_id, unsigned int //setting history should be independent from password being set m_maxHistorySize = history_size; - LOGE("m_maxHistorySize : " << m_maxHistorySize); + LOGD("m_maxHistorySize : " << m_maxHistorySize); while (m_passwordHistory.size() > history_size) m_passwordHistory.pop_back(); @@ -349,7 +349,7 @@ int hal_backend_security_auth::get_max_history_size(uid_t user_id, unsigned int if(user_id != m_user) return HAL_SECURITY_AUTH_ERROR_INPUT_PARAM; *history_size = m_maxHistorySize; - LOGE("m_maxHistorySize : " << m_maxHistorySize); + LOGD("m_maxHistorySize : " << m_maxHistorySize); return HAL_SECURITY_AUTH_ERROR_NONE; } @@ -360,7 +360,7 @@ int hal_backend_security_auth::get_expire_time(uid_t user_id, unsigned int *expi if(user_id != m_user) return HAL_SECURITY_AUTH_ERROR_INPUT_PARAM; *expire_time = m_expireTime; - LOGE("m_expireTime : " << m_expireTime); + LOGD("m_expireTime : " << m_expireTime); return HAL_SECURITY_AUTH_ERROR_NONE; } @@ -485,11 +485,11 @@ int hal_backend_security_auth::is_password_reused(uid_t user_id, const char* pas [&password](const IPasswordPtr & pwd) { return pwd->match(password); })) { - LOGE("password match!"); + LOGD("password match!"); return HAL_SECURITY_AUTH_ERROR_NONE; } - LOGE("Failed isPasswordReused: No passwords match"); + LOGD("Failed isPasswordReused: No passwords match"); return HAL_SECURITY_AUTH_ERROR_STATUS; } -- 2.34.1