diff --git a/include/otbTensorflowSampler.hxx b/include/otbTensorflowSampler.hxx
index 4b2d8c77a071549203bb9ae105437d939b12de6e..4b5dbccc8928d8e47f3a42f7976c26e4ca89878e 100644
--- a/include/otbTensorflowSampler.hxx
+++ b/include/otbTensorflowSampler.hxx
@@ -201,6 +201,7 @@ TensorflowSampler<TInputImage, TVectorData>
               if (pix[i] == m_NodataValue)
               {
                 hasBeenSampled = false;
+                std::cout << "REJECT!" << std::endl;
                 break;
               }
             if (!hasBeenSampled)