|
37 | 37 | #include "ROOT/TypeTraits.hxx" |
38 | 38 | #include "RtypesCore.h" // for ULong64_t |
39 | 39 | #include "TDirectory.h" |
| 40 | +#include "TEnv.h" |
40 | 41 | #include "TH1.h" // For Histo actions |
41 | 42 | #include "TH2.h" // For Histo actions |
42 | 43 | #include "TH3.h" // For Histo actions |
@@ -1341,15 +1342,19 @@ public: |
1341 | 1342 | static_assert(false && "Remove information about change of Snapshot defaut compression settings."); |
1342 | 1343 | #endif |
1343 | 1344 | [[maybe_unused]] static bool once = []() { |
1344 | | - if (const char *suppress = std::getenv("ROOT_RDF_SILENCE_SNAPSHOT_INFO")) |
1345 | | - if (std::strcmp(suppress, "1") == 0) |
| 1345 | + if (const char *suppress = std::getenv("ROOT_RDF_SNAPSHOT_INFO")) |
| 1346 | + if (std::strcmp(suppress, "0") == 0) |
| 1347 | + return true; |
| 1348 | + if (const char *suppress = gEnv->GetValue("ROOT.RDF.Snapshot.Info", "1")) |
| 1349 | + if (std::strcmp(suppress, "0") == 0) |
1346 | 1350 | return true; |
1347 | 1351 | RLogScopedVerbosity showInfo{ROOT::Detail::RDF::RDFLogChannel(), ROOT::ELogLevel::kInfo}; |
1348 | 1352 | R__LOG_INFO(ROOT::Detail::RDF::RDFLogChannel()) |
1349 | | - << "In ROOT 6.38, the default compression settings of Snapshot have been changed from 101 (ZLIB with " |
| 1353 | + << "\n\tIn ROOT 6.38, the default compression settings of Snapshot have been changed from 101 (ZLIB with " |
1350 | 1354 | "compression level 1, the TTree default) to 505 (ZSTD with compression level 5). This change may result " |
1351 | 1355 | "in smaller Snapshot output dataset size by default. In order to suppress this message, set " |
1352 | | - "ROOT_RDF_SILENCE_SNAPSHOT_INFO=1 in your environment."; |
| 1356 | + "'ROOT_RDF_SNAPSHOT_INFO=0' in your environment or set 'ROOT.RDF.Snapshot.Info: 0' in your .rootrc " |
| 1357 | + "file."; |
1353 | 1358 | return true; |
1354 | 1359 | }(); |
1355 | 1360 | // like columnList but with `#var` columns removed |
|
0 commit comments