change log levels
parent
1b9d2a4df9
commit
5bc09d6ab0
|
@ -54,7 +54,6 @@ public:
|
|||
std::unique_lock<std::mutex> lk(m_);
|
||||
|
||||
if (closed_.load(std::memory_order_acquire)) {
|
||||
LOG_ERROR("Event dispatcher closed");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -65,12 +64,10 @@ public:
|
|||
});
|
||||
|
||||
if (closed_.load(std::memory_order_acquire)) {
|
||||
LOG_ERROR("Event dispatcher closed");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!result) {
|
||||
LOG_ERROR("Event dispatcher timeout");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -86,14 +83,12 @@ public:
|
|||
if (!message_copy.empty()) {
|
||||
if (!sink->write(message_copy.data(), message_copy.size())) {
|
||||
close();
|
||||
LOG_ERROR("Event dispatcher write failed");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
} catch (...) {
|
||||
close();
|
||||
LOG_ERROR("Event dispatcher exception");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -479,9 +479,9 @@ void server::handle_sse(const httplib::Request& req, httplib::Response& res) {
|
|||
thread_to_release.release();
|
||||
}
|
||||
} catch (const std::exception& e) {
|
||||
LOG_ERROR("Exception while cleaning up session resources: ", session_id, ", ", e.what());
|
||||
LOG_WARNING("Exception while cleaning up session resources: ", session_id, ", ", e.what());
|
||||
} catch (...) {
|
||||
LOG_ERROR("Unknown exception while cleaning up session resources: ", session_id);
|
||||
LOG_WARNING("Unknown exception while cleaning up session resources: ", session_id);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue