From 32e7f56d3e39492326764c3edc246827645f9b0d Mon Sep 17 00:00:00 2001 From: Howard Butler Date: Wed, 8 Apr 2015 13:04:13 -0500 Subject: [PATCH] only allow one log to be put on the GlobalEnvironment --- src/GlobalEnvironment.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/GlobalEnvironment.cpp b/src/GlobalEnvironment.cpp index d069ead0b7..ec74ef5541 100644 --- a/src/GlobalEnvironment.cpp +++ b/src/GlobalEnvironment.cpp @@ -114,17 +114,10 @@ void GlobalEnvironment::initializeGDAL(LogPtr log) OGRRegisterAll(); m_gdalDebug.reset(new pdal::gdal::GlobalDebug()); + m_gdalDebug->addLog(log); } } - if (m_gdalDebug) - { - m_gdalDebug->addLog(log); - } - else - { - throw pdal_error("Unable to initialize the GDAL environment"); - } }