summaryrefslogtreecommitdiffstats
path: root/src/CudaReconstructionAlgorithm2D.cpp
diff options
context:
space:
mode:
authorDaniel M. Pelt <D.M.Pelt@cwi.nl>2015-03-10 15:11:15 +0100
committerDaniel M. Pelt <D.M.Pelt@cwi.nl>2015-03-10 15:11:15 +0100
commit150951875c236f95a64fd132c26576bd19daca80 (patch)
treeecafe5eed21bc15e577be9cb16702d1e03d31162 /src/CudaReconstructionAlgorithm2D.cpp
parent535564ccd8b9563fb52be0dff247b99495942f51 (diff)
downloadastra-150951875c236f95a64fd132c26576bd19daca80.tar.gz
astra-150951875c236f95a64fd132c26576bd19daca80.tar.bz2
astra-150951875c236f95a64fd132c26576bd19daca80.tar.xz
astra-150951875c236f95a64fd132c26576bd19daca80.zip
Use new logging API internally instead of printf / iostream
Diffstat (limited to 'src/CudaReconstructionAlgorithm2D.cpp')
-rw-r--r--src/CudaReconstructionAlgorithm2D.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/CudaReconstructionAlgorithm2D.cpp b/src/CudaReconstructionAlgorithm2D.cpp
index d3dedc5..b434e8a 100644
--- a/src/CudaReconstructionAlgorithm2D.cpp
+++ b/src/CudaReconstructionAlgorithm2D.cpp
@@ -37,6 +37,8 @@ $Id$
#include "astra/FanFlatVecProjectionGeometry2D.h"
#include "astra/CudaProjector2D.h"
+#include "astra/Logging.h"
+
#include "../cuda/2d/algo.h"
#include <ctime>
@@ -176,7 +178,7 @@ bool CCudaReconstructionAlgorithm2D::initialize(const Config& _cfg)
id = boost::lexical_cast<int>(node->getContent());
CProjector2D *projector = CProjector2DManager::getSingleton().get(id);
if (!dynamic_cast<CCudaProjector2D*>(projector)) {
- cout << "Warning: non-CUDA Projector2D passed" << std::endl;
+ astra::CLogger::warn(__FILE__,__LINE__,"Warning: non-CUDA Projector2D passed");
}
delete node;
}