Modify log level 12/324512/1
authorDongik Lee <dongik.lee@samsung.com>
Tue, 20 May 2025 04:24:05 +0000 (13:24 +0900)
committerDongik Lee <dongik.lee@samsung.com>
Tue, 20 May 2025 04:24:05 +0000 (13:24 +0900)
Change-Id: I73ef5cbdfd508b81bb1e6f5b240c849ca3f6803e

src/hal_backend_security_auth.cpp

index 460257058bb020dd91fdf62aa9123ad2b6457502..0b812346069e87939b52af9ba2cf4bd7e62dc573 100644 (file)
@@ -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;
 }