Skip to content

Commit

Permalink
Fixing issue Debug setting in xml
Browse files Browse the repository at this point in the history
Implements JETSCAPE PR 180 in X-SCAPE.
  • Loading branch information
latessa committed Feb 17, 2024
1 parent 5e8d1de commit 82ab69c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/jetscape_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<nReuseHydro> 10 </nReuseHydro>

<!-- Technical settings -->
<debug> on </debug>
<debug> off </debug>
<remark> off </remark>
<vlevel> 0 </vlevel>
<nEvents_printout> 100 </nEvents_printout>
Expand Down
4 changes: 2 additions & 2 deletions src/framework/JetScape.cc
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ void JetScape::ReadGeneralParametersFromXML() {

// Debug level
std::string log_debug = GetXMLElementText({"debug"});
if ((int)log_debug.find("off") >= 0)
JetScapeLogger::Instance()->SetDebug(false);
if ((int)log_debug.find("on") >= 0)
JetScapeLogger::Instance()->SetDebug(true);
VERBOSE(1) << "JetScape Debug = " << log_debug;

// Remark
Expand Down

0 comments on commit 82ab69c

Please sign in to comment.