summaryrefslogtreecommitdiff
path: root/src/syncevo/ForkExec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/syncevo/ForkExec.cpp')
-rw-r--r--src/syncevo/ForkExec.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/syncevo/ForkExec.cpp b/src/syncevo/ForkExec.cpp
index 649b5b0c..46cd1d67 100644
--- a/src/syncevo/ForkExec.cpp
+++ b/src/syncevo/ForkExec.cpp
@@ -128,14 +128,7 @@ void ForkExecParent::forked(gpointer data) throw()
// any output is printed directly, instead of going through
// the parent's output processing in LogRedirect.
if (getenv("SYNCEVOLUTION_DEBUG")) {
- int index = Logger::numLoggers();
- LogRedirect *redirect = NULL;
- while (--index >= 0 &&
- !(redirect = dynamic_cast<LogRedirect *>(Logger::loggerAt(index)))) {
- }
- if (redirect) {
- redirect->reset();
- }
+ LogRedirect::removeRedirect();
}
if (me->m_mergedStdoutStderr) {