Skip to content

Commit

Permalink
refactor: level log messages of state protocol
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitriy Khaustov aka xDimon <khaustov.dm@gmail.com>
  • Loading branch information
xDimon committed Aug 16, 2022
1 parent dda6011 commit 1a55181
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/network/impl/protocols/state_protocol_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ namespace kagome::network {
return;
}

SL_WARN(self->log_,
SL_DEBUG(self->log_,
"Established outgoing {} stream with {}",
self->protocol_,
stream->remotePeerId().value());
Expand All @@ -203,7 +203,7 @@ namespace kagome::network {
return;
}

SL_WARN(self->log_, "State request sent");
SL_DEBUG(self->log_, "State request sent");

if (not write_res.has_value()) {
SL_WARN(self->log_, "Error getting response");
Expand Down Expand Up @@ -296,7 +296,7 @@ namespace kagome::network {
std::function<void(outcome::result<StateResponse>)> &&response_handler) {
auto read_writer = std::make_shared<ProtobufMessageReadWriter>(stream);

SL_WARN(log_,
SL_DEBUG(log_,
"Read response from outgoing {} stream with {}",
protocol_,
stream->remotePeerId().value());
Expand Down

0 comments on commit 1a55181

Please sign in to comment.