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:
Mihir Lad 2020-07-20 00:39:26 -04:00
parent 7dba8ea2dd
commit b37ae4f25a

View File

@ -271,14 +271,14 @@ namespace modules {
auto dwm_module::reconnect_dwm() -> bool {
try {
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_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()) {
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_log.info("%s: Successfully reconnected event to socket", name());
m_log.notice("%s: Successfully reconnected event to socket", name());
}
return true;
} catch (const exception& err) {