diff --git a/mainapp.cpp b/mainapp.cpp index d84923d8..af43fca6 100644 --- a/mainapp.cpp +++ b/mainapp.cpp @@ -381,7 +381,7 @@ void MainApp::saveState(const Settings &settings, const std::listlogf(LOG_INFO, "Saving states done"); + logger->logf(LOG_NOTICE, "Saving states done"); } } catch(std::exception &ex) @@ -393,7 +393,7 @@ void MainApp::saveState(const Settings &settings, const std::list &bridgeInfos) { Logger *logger = Logger::getInstance(); - logger->logf(LOG_INFO, "Saving bridge info in '%s'", filePath.c_str()); + logger->logf(LOG_NOTICE, "Saving bridge info in '%s'", filePath.c_str()); BridgeInfoDb bridgeInfoDb(filePath); bridgeInfoDb.openWrite(); bridgeInfoDb.saveInfo(bridgeInfos); @@ -410,7 +410,7 @@ void MainApp::loadBridgeInfo() try { - logger->logf(LOG_INFO, "Loading '%s'", filePath.c_str()); + logger->logf(LOG_NOTICE, "Loading '%s'", filePath.c_str()); BridgeInfoDb dbfile(filePath); dbfile.openRead(); diff --git a/mqttpacket.cpp b/mqttpacket.cpp index 5304ea05..7961ed65 100644 --- a/mqttpacket.cpp +++ b/mqttpacket.cpp @@ -757,7 +757,7 @@ ConnAckData MqttPacket::parseConnAckData() case Mqtt5Properties::ReasonString: { const std::string reason = readBytesToString(); - logger->logf(LOG_INFO, "ConnAck reason string: %s", reason.c_str()); + logger->logf(LOG_NOTICE, "ConnAck reason string: %s", reason.c_str()); break; } case Mqtt5Properties::UserProperty: diff --git a/plugin.cpp b/plugin.cpp index 8007505e..7241ea70 100644 --- a/plugin.cpp +++ b/plugin.cpp @@ -172,7 +172,7 @@ void Authentication::cleanup() if (pluginFamily == PluginFamily::None) return; - logger->logf(LOG_INFO, "Cleaning up authentication."); + logger->logf(LOG_NOTICE, "Cleaning up authentication."); securityCleanup(false); diff --git a/subscriptionstore.cpp b/subscriptionstore.cpp index c6479b25..e53493ec 100644 --- a/subscriptionstore.cpp +++ b/subscriptionstore.cpp @@ -1407,7 +1407,7 @@ void SubscriptionStore::expireRetainedMessages(RetainedMessageNode *this_node, c void SubscriptionStore::saveRetainedMessages(const std::string &filePath, bool sleep_after_limit) { - logger->logf(LOG_INFO, "Saving retained messages to '%s'", filePath.c_str()); + logger->logf(LOG_NOTICE, "Saving retained messages to '%s'", filePath.c_str()); std::vector result; int64_t reserve = std::max(retainedMessageCount, 0); @@ -1450,7 +1450,7 @@ void SubscriptionStore::loadRetainedMessages(const std::string &filePath) { try { - logger->logf(LOG_INFO, "Loading '%s'", filePath.c_str()); + logger->logf(LOG_NOTICE, "Loading '%s'", filePath.c_str()); RetainedMessagesDB db(filePath); db.openRead(); @@ -1469,7 +1469,7 @@ void SubscriptionStore::loadRetainedMessages(const std::string &filePath) void SubscriptionStore::saveSessionsAndSubscriptions(const std::string &filePath) { - logger->logf(LOG_INFO, "Saving sessions and subscriptions to '%s' in thread.", filePath.c_str()); + logger->logf(LOG_NOTICE, "Saving sessions and subscriptions to '%s' in thread.", filePath.c_str()); const std::chrono::time_point start = std::chrono::steady_clock::now(); @@ -1510,7 +1510,7 @@ void SubscriptionStore::loadSessionsAndSubscriptions(const std::string &filePath { try { - logger->logf(LOG_INFO, "Loading '%s'", filePath.c_str()); + logger->logf(LOG_NOTICE, "Loading '%s'", filePath.c_str()); SessionsAndSubscriptionsDB db(filePath); db.openRead();