Skip to content

Commit

Permalink
Don't use invalid log.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Aug 22, 2016
1 parent 91d995a commit 259d256
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions apps/pdal.cpp
Expand Up @@ -277,6 +277,7 @@ int App::execute(StringList& cmdArgs, LogPtr& log)
Kernel *kernel(static_cast<Kernel *>(obj));
// This shouldn't throw. If it does, it's something awful, so
// not cleaning up seems inconsequential.
log->setLeader("pdal" + m_command);
ret = kernel->run(cmdArgs, log);
delete kernel;
// IMPORTANT - The kernel must be destroyed before GDAL
Expand Down
4 changes: 1 addition & 3 deletions kernels/tindex/TIndexKernel.cpp
Expand Up @@ -86,9 +86,7 @@ TIndexKernel::TIndexKernel()
, m_layer(NULL)
, m_fastBoundary(false)

{
m_log->setLeader("pdal tindex");
}
{}


void TIndexKernel::addSwitches(ProgramArgs& args)
Expand Down

0 comments on commit 259d256

Please sign in to comment.