Skip to content

Commit

Permalink
Fixed VLOG_IS_ON definition when glog is disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamshapiro0 committed Aug 21, 2024
1 parent 139a3fe commit c96df20
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/point_one/polaris/polaris_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,16 @@ static std::ostream null_stream(0);
#if defined(P1_NO_PRINT)
#define LOG(severity) null_stream
#define VLOG(severity) null_stream
#define VLOG_IS_ON(severity) false
#else // !defined(P1_NO_PRINT)
#define LOG(severity) cerr_stream
#if defined(POLARIS_DEBUG)
#define VLOG(severity) cerr_stream
#define VLOG_IS_ON(severity) true
#else
#define VLOG(severity) null_stream
#endif defined(P1_NO_PRINT)
#define VLOG_IS_ON(severity) false
#endif // defined(P1_NO_PRINT)
#endif // defined(POLARIS_DEBUG)

#define LOG_INFO_STREAM(filename, line) LOG(INFO)
Expand Down

0 comments on commit c96df20

Please sign in to comment.