Skip to content

Commit

Permalink
Avoid spam when there's no array (f3d-app#1424)
Browse files Browse the repository at this point in the history
  • Loading branch information
Meakk authored May 9, 2024
1 parent 9992753 commit 0519e92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion application/testing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ f3d_test(NAME TestTensorsVolumeDirect DATA tensors.vti ARGS -v --scalars=tensors
f3d_test(NAME TestVerboseVolumeNoArray DATA cow.vtp ARGS -v REGEXP "Cannot use volume with this dataset" NO_BASELINE)

# Test scalar rendering without any array
f3d_test(NAME TestVerboseNoArray DATA cow.vtp ARGS -s REGEXP "No array to color with" NO_BASELINE)
f3d_test(NAME TestVerboseNoArray DATA cow.vtp ARGS -s --verbose=debug REGEXP "No array to color with" NO_BASELINE)

# Test non existent file, do not create nonExistentFile.vtp
f3d_test(NAME TestVerboseNonExistentFile DATA nonExistentFile.vtp REGEXP "File \".*nonExistentFile.vtp\" does not exist" NO_RENDER)
Expand Down
2 changes: 1 addition & 1 deletion vtkext/private/module/vtkF3DRendererWithColoring.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ void vtkF3DRendererWithColoring::SetColoring(
else if (nIndexes == 0)
{
// Trying to color but no array available
F3DLog::Print(F3DLog::Severity::Warning, "No array to color with");
F3DLog::Print(F3DLog::Severity::Debug, "No array to color with");
this->ArrayIndexForColoring = -1;
}
else if (arrayName.empty())
Expand Down

0 comments on commit 0519e92

Please sign in to comment.