Skip to content

Commit

Permalink
only allow one log to be put on the GlobalEnvironment
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Apr 8, 2015
1 parent 7e24eb3 commit 32e7f56
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/GlobalEnvironment.cpp
Expand Up @@ -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");
}
}


Expand Down

0 comments on commit 32e7f56

Please sign in to comment.