Skip to content

Commit

Permalink
Typecast the return enum code to int before logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinmay1412 committed May 20, 2022
1 parent 7ca9e3b commit 36b3658
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libamqpprox/amqpprox_session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,8 @@ void Session::establishConnection()

default:
LOG_INFO << "Failed to acquire connection for vhost "
<< d_sessionState.getVirtualHost() << ", rc: " << rc;
<< d_sessionState.getVirtualHost()
<< ", rc: " << static_cast<int>(rc);
disconnect(true);
}

Expand Down

0 comments on commit 36b3658

Please sign in to comment.