Command: Avoid using wfDebug()
authorKunal Mehta <legoktm@member.fsf.org>
Wed, 18 Oct 2017 01:22:42 +0000 (18:22 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Wed, 18 Oct 2017 01:22:42 +0000 (18:22 -0700)
Change-Id: I92ea55d7a5b6a71a6f6b944f377215c08ea3b096

includes/shell/Command.php

index 4fc282c..59f40bf 100644 (file)
@@ -253,7 +253,7 @@ class Command {
                if ( !$useLogPipe && $this->useStderr ) {
                        $cmd .= ' 2>&1';
                }
-               wfDebug( __METHOD__ . ": $cmd\n" );
+               $this->logger->debug( __METHOD__ . ": $cmd" );
 
                // Don't try to execute commands that exceed Linux's MAX_ARG_STRLEN.
                // Other platforms may be more accomodating, but we don't want to be