Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[communication, iamclient] Alerts fix #6

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/communication/cmconnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void CMConnection::RunSecureChannel()
if (auto err = mCMCommSecureChannel->Connect(); !err.IsNone()) {
std::unique_lock lock {mMutex};

LOG_ERR() << "Failed to connect: error=" << err;
LOG_WRN() << "Failed to connect: error=" << err;

mCondVar.wait_for(lock, cConnectionTimeout, [this]() { return mShutdown.load(); });

Expand Down Expand Up @@ -124,7 +124,7 @@ void CMConnection::RunOpenChannel()
if (auto err = mCMCommOpenChannel->Connect(); !err.IsNone()) {
std::unique_lock lock {mMutex};

LOG_ERR() << "Failed to connect CM: error=" << err;
LOG_WRN() << "Failed to connect CM: error=" << err;

mCondVar.wait_for(lock, cConnectionTimeout, [this]() { return mShutdown.load(); });

Expand Down
2 changes: 1 addition & 1 deletion src/communication/communicationmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ void CommunicationManager::Run()
if (auto err = Connect(); !err.IsNone()) {
std::unique_lock lock {mMutex};

LOG_ERR() << "Failed to connect communication manager: error=" << err;
LOG_WRN() << "Failed to connect communication manager: error=" << err;

mCondVar.wait_for(lock, cReconnectTimeout, [this]() { return mIsConnected || mShutdown; });

Expand Down
2 changes: 1 addition & 1 deletion src/communication/iamconnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void IAMConnection::Run()
if (auto err = mIAMCommChannel->Connect(); !err.IsNone()) {
std::unique_lock lock {mMutex};

LOG_ERR() << "Failed to connect to IAM: error=" << err;
LOG_WRN() << "Failed to connect to IAM: error=" << err;

mCondVar.wait_for(lock, cConnectionTimeout, [this]() { return mShutdown.load(); });

Expand Down
2 changes: 1 addition & 1 deletion src/iamclient/publicnodeclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ void PublicNodeClient::ConnectionLoop(const std::string& url) noexcept
LOG_ERR() << "Failed to register node: error=" << err.Message();
}
} catch (const std::exception& e) {
LOG_ERR() << "Failed to connect: error=" << e.what();
LOG_WRN() << "Failed to connect: error=" << e.what();
}

std::unique_lock lock {mMutex};
Expand Down