Skip to content

Commit

Permalink
Upgrade some log from info to notice
Browse files Browse the repository at this point in the history
This is to prepare for better setting of log level.
  • Loading branch information
halfgaar committed Mar 4, 2024
1 parent 6c102aa commit ef35015
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions mainapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ void MainApp::saveState(const Settings &settings, const std::list<BridgeInfoForS

MainApp::saveBridgeInfo(settings.getBridgeNamesDBFile(), bridgeInfos);

logger->logf(LOG_INFO, "Saving states done");
logger->logf(LOG_NOTICE, "Saving states done");
}
}
catch(std::exception &ex)
Expand All @@ -393,7 +393,7 @@ void MainApp::saveState(const Settings &settings, const std::list<BridgeInfoForS
void MainApp::saveBridgeInfo(const std::string &filePath, const std::list<BridgeInfoForSerializing> &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);
Expand All @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion mqttpacket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
8 changes: 4 additions & 4 deletions subscriptionstore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<RetainedMessage> result;
int64_t reserve = std::max<int64_t>(retainedMessageCount, 0);
Expand Down Expand Up @@ -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();
Expand All @@ -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<std::chrono::steady_clock> start = std::chrono::steady_clock::now();

Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit ef35015

Please sign in to comment.