Skip to content

Commit

Permalink
fix pointer address logging issue
Browse files Browse the repository at this point in the history
  • Loading branch information
muskanlalit18 committed Nov 20, 2024
1 parent 95cea2b commit 22617c1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions daemon/src/daemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,9 @@ int main( int argc, const char* argv[] )
}
else
{
log_message =
"grpc pthread is at " + std::string( static_cast<const char*>( grpc_pthread ) );
std::ostringstream address_stream;
address_stream << grpc_pthread;
log_message = "grpc pthread is at " + address_stream.str();
}
cf_daemon.cf_logger.logger( LOG_INFO, log_message.c_str() );

Expand All @@ -303,8 +304,9 @@ int main( int argc, const char* argv[] )
}
else
{
log_message = "krb refresh pthread is at " +
std::string( static_cast<const char*>( krb_refresh_pthread ) );
std::ostringstream address_stream;
address_stream << krb_refresh_pthread;
log_message = "krb refresh pthread is at " + address_stream.str();
}
cf_daemon.cf_logger.logger( LOG_INFO, log_message.c_str() );

Expand Down

0 comments on commit 22617c1

Please sign in to comment.