Decrease log level of config file move error

This commit is contained in:
Megamouse 2025-01-17 00:25:18 +01:00
parent 1cff5b35d4
commit 6805c36004
2 changed files with 2 additions and 2 deletions

View File

@ -417,7 +417,7 @@ void Emulator::Init()
if (!fs::rename(old_path, cfg_path, false))
{
sys_log.error("Failed to move '%s' to '%s' (error='%s')", old_path, cfg_path, fs::g_tls_error);
(fs::g_tls_error == fs::error::exist ? sys_log.warning : sys_log.error)("Failed to move '%s' to '%s' (error='%s')", old_path, cfg_path, fs::g_tls_error);
}
}
#endif

View File

@ -159,7 +159,7 @@ void games_config::load()
if (!fs::rename(old_path, path, false))
{
cfg_log.error("Failed to move '%s' to '%s' (error='%s')", old_path, path, fs::g_tls_error);
(fs::g_tls_error == fs::error::exist ? cfg_log.warning : cfg_log.error)("Failed to move '%s' to '%s' (error='%s')", old_path, path, fs::g_tls_error);
}
}
#endif