mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 21:09:00 +08:00
changed log level.
This commit is contained in:
parent
9b61c67eaa
commit
4bd0c15c1b
@ -674,7 +674,7 @@ void UserAccountCommunication::request_refresh()
|
||||
// Here we need to count with situation when token was renewed in m_session but was not yet stored.
|
||||
// Then store token is not valid - it should has erlier expiration
|
||||
long long expires_in_second = stored_data.next_timeout.empty() ? 0 : std::stoll(stored_data.next_timeout) - std::time(nullptr);
|
||||
BOOST_LOG_TRIVIAL(error) << "Compare " << expires_in_second << " vs " << m_next_token_refresh_at - std::time(nullptr) << (stored_data.access_token != current_access_token ? " not same" : " same");
|
||||
BOOST_LOG_TRIVIAL(debug) << "Compare " << expires_in_second << " vs " << m_next_token_refresh_at - std::time(nullptr) << (stored_data.access_token != current_access_token ? " not same" : " same");
|
||||
if (stored_data.access_token != current_access_token && expires_in_second > 0 && expires_in_second > m_next_token_refresh_at - std::time(nullptr)) {
|
||||
BOOST_LOG_TRIVIAL(debug) << "Found usable token. Expires in " << expires_in_second;
|
||||
set_tokens(stored_data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user