dwm: Use notice to log socket reconnection
Info does not normally show this info which is useful to know after a disconnection.
This commit is contained in:
parent
7dba8ea2dd
commit
b37ae4f25a
@ -271,14 +271,14 @@ namespace modules {
|
|||||||
auto dwm_module::reconnect_dwm() -> bool {
|
auto dwm_module::reconnect_dwm() -> bool {
|
||||||
try {
|
try {
|
||||||
if (!m_ipc->is_main_socket_connected()) {
|
if (!m_ipc->is_main_socket_connected()) {
|
||||||
m_log.info("%s: Attempting to reconnect to main socket", name());
|
m_log.notice("%s: Attempting to reconnect to main socket", name());
|
||||||
m_ipc->connect_main_socket();
|
m_ipc->connect_main_socket();
|
||||||
m_log.info("%s: Successfully reconnected to main socket", name());
|
m_log.notice("%s: Successfully reconnected to main socket", name());
|
||||||
}
|
}
|
||||||
if (!m_ipc->is_event_socket_connected()) {
|
if (!m_ipc->is_event_socket_connected()) {
|
||||||
m_log.info("%s: Attempting to reconnect event socket", name());
|
m_log.notice("%s: Attempting to reconnect event socket", name());
|
||||||
m_ipc->connect_event_socket();
|
m_ipc->connect_event_socket();
|
||||||
m_log.info("%s: Successfully reconnected event to socket", name());
|
m_log.notice("%s: Successfully reconnected event to socket", name());
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
} catch (const exception& err) {
|
} catch (const exception& err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user