disable Info and Debug logs by default (#5065)

* disable the info and debug logs by default

* adjust tests to the newly disabled logs

* add LogStateSetter

* namespace reorg

* add some tests

* remove vestigial code

* switch to using std::vector
This commit is contained in:
Greg Landrum
2022-03-12 10:04:28 +01:00
committed by GitHub
parent 6894225df3
commit fd1752e006
13 changed files with 150 additions and 16 deletions

View File

@@ -160,6 +160,8 @@ void getExperimentalTorsions(const RDKit::ROMol &mol, CrystalFFDetails &details,
throw ValueErrorException("molecule has no atoms");
}
RDLog::LogStateSetter logs(
RDLog::RDLoggerList({rdInfoLog, rdErrorLog, rdWarningLog}));
// check that vectors are empty
details.expTorsionAtoms.clear();
details.expTorsionAngles.clear();