COMPMID-1824 Disable logging completely when building with logging=0

Change-Id: Ie0d5387c0546045e14e62c84c03894a9b0339585
Reviewed-on: https://review.mlplatform.org/335
Reviewed-by: Pablo Marquez <pablo.tello@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
diff --git a/src/core/ITensor.cpp b/src/core/ITensor.cpp
index 3dffcd0..31359c6 100644
--- a/src/core/ITensor.cpp
+++ b/src/core/ITensor.cpp
@@ -71,6 +71,7 @@
     src_it, dst_it);
 }
 
+#ifdef ARM_COMPUTE_DEBUG_ENABLED
 void ITensor::print(std::ostream &s, IOFormatInfo io_fmt) const
 {
     ARM_COMPUTE_ERROR_ON(this->buffer() == nullptr);
@@ -151,6 +152,7 @@
         }
     }
 }
+#endif /* ARM_COMPUTE_DEBUG_ENABLED */
 
 bool ITensor::is_used() const
 {