Skip to content
Open
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
10 changes: 10 additions & 0 deletions Framework/src/QcInfoLogger.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

#include "QualityControl/QcInfoLogger.h"
#include <boost/property_tree/ptree.hpp>
#include <Framework/DefaultsHelpers.h>
#include <Framework/DataTakingContext.h>

namespace o2::quality_control::core
{
Expand Down Expand Up @@ -92,6 +94,14 @@ void QcInfoLogger::init(const std::string& facility,
if (!discardParameters.file.empty()) {
ILOG_INST.filterDiscardSetFile(discardParameters.file.c_str(), discardParameters.rotateMaxBytes, discardParameters.rotateMaxFiles, 0, !discardParameters.debugInDiscardFile /*Do not store Debug messages in file*/);
}

// On the grid make sure that we use stdout and not the local infologger daemon even if it is there.
auto deploymentMode = o2::framework::DefaultsHelpers::deploymentMode();
if (deploymentMode == o2::framework::DeploymentMode::Grid) {
setenv("O2_INFOLOGGER_MODE", "stdout", 1);
ILOG(Debug, Support) << "Running on the Grid -> output goes to stdout." << ENDM;
}

ILOG(Debug, Support) << "QC infologger initialized : " << discardParameters.debug << " ; " << discardParameters.fromLevel << ENDM;
ILOG(Debug, Devel) << " Discard debug ? " << discardParameters.debug << " / Discard from level ? " << discardParameters.fromLevel << " / Discard to file ? " << (!discardParameters.file.empty() ? discardParameters.file : "No") << " / Discard max bytes and files ? " << discardParameters.rotateMaxBytes << " = " << discardParameters.rotateMaxFiles << " / Put discarded debug messages in file ? " << discardParameters.debugInDiscardFile << ENDM;

Expand Down
Loading