From fa3fc495878aeb35b3cb505860fdb5f05a047412 Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Thu, 3 Jan 2013 13:25:45 +0100 Subject: [PATCH] Using logog logging within class Raster. --- GeoLib/Raster.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GeoLib/Raster.cpp b/GeoLib/Raster.cpp index ee129466161..f9aa8b72ccd 100644 --- a/GeoLib/Raster.cpp +++ b/GeoLib/Raster.cpp @@ -77,7 +77,7 @@ Raster* Raster::getRasterFromSurface(Surface const& sfc, double cell_size, doubl const size_t n_triangles (sfc.getNTriangles()); double *z_vals (new double[n_cols*n_rows]); if (!z_vals) { - std::cout << "DEBUG: CreateRaster::getRaster " << n_cols << " x " << n_rows << " to big" << std::endl; + WARN("CreateRaster::getRaster not enough memory for %d x %d raster", n_cols, n_rows); return NULL; } size_t k(0); @@ -128,7 +128,7 @@ Raster* Raster::getRasterFromASCFile(std::string const& fname) std::ifstream in(fname.c_str()); if (!in.is_open()) { - std::cout << "Raster::getRasterFromASCFile() - Could not open file..." << fname << std::endl; + WARN("Raster::getRasterFromASCFile(): Could not open file %s.", fname.c_str()); return NULL; } @@ -154,7 +154,7 @@ Raster* Raster::getRasterFromASCFile(std::string const& fname) delete [] values; return raster; } else { - std::cout << "Raster::getRasterFromASCFile() - could not read header of file " << fname << std::endl; + WARN("Raster::getRasterFromASCFile(): Could not read header of file %s", fname.c_str()); return NULL; } } -- GitLab