Skip to content
Snippets Groups Projects
Commit e1bf3eb6 authored by Sam Jenkins's avatar Sam Jenkins
Browse files

Re #23807 Updated logging to reduce calculations/output when not debug

parent ca7cdad9
No related branches found
No related tags found
No related merge requests found
...@@ -246,12 +246,14 @@ void LoadSampleEnvironment::exec() { ...@@ -246,12 +246,14 @@ void LoadSampleEnvironment::exec() {
sample.setEnvironment(std::move(environment)); sample.setEnvironment(std::move(environment));
auto translatedVertices = environmentMesh->getVertices(); auto translatedVertices = environmentMesh->getVertices();
int i = 0; if (g_log.is(7)) {
for (double vertex : translatedVertices) { int i = 0;
i++; for (double vertex : translatedVertices) {
g_log.information(std::to_string(vertex)); i++;
if (i % 3 == 0) { g_log.debug(std::to_string(vertex));
g_log.information("\n"); if (i % 3 == 0) {
g_log.debug("\n");
}
} }
} }
// get the material name and number density for debug // get the material name and number density for debug
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment