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

DPL: allow signposts to be enabled via DPL_SIGNPOSTS #12595

Merged
merged 2 commits into from
Jan 25, 2024
Merged
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
1 change: 1 addition & 0 deletions Framework/Core/src/DeviceSpecHelpers.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1627,6 +1627,7 @@ boost::program_options::options_description DeviceSpecHelpers::getForwardedDevic
// - rate is an option of FairMQ device for ConditionalRun
// - child-driver is not a FairMQ device option but used per device to start to process
bpo::options_description forwardedDeviceOptions;
char const* defaultSignposts = getenv("DPL_SIGNPOSTS") ? getenv("DPL_SIGNPOSTS") : "";
forwardedDeviceOptions.add_options() //
("severity", bpo::value<std::string>()->default_value("info"), "severity level of the log") //
("plugin,P", bpo::value<std::string>(), "FairMQ plugin list") //
Expand Down
2 changes: 1 addition & 1 deletion Framework/Foundation/include/Framework/Signpost.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ struct _o2_log_t {
// 0 means the log is disabled.
// 1 means only the current signpost is printed.
// >1 means the current signpost and n levels of the stacktrace are printed.
std::atomic<int> stacktrace = 0;
int stacktrace = 0;

// Default stacktrace level for the log, when enabled.
int defaultStacktrace = 1;
Expand Down