Commit c9ba5212 authored by 王源's avatar 王源
Browse files

添加打印

parent 3c948737
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -29,10 +29,10 @@ class ExceptionLogProducer extends ProducerMessage
            try {
                put_log("git: git blame -L {$data['line']},{$data['line']} {$data['file']}", 'ExceptionLogProducerEcho.log');
                exec("git blame -L {$data['line']},{$data['line']} {$data['file']}", $output);
                put_log("output: $output", 'ExceptionLogProducerEcho.log');
                put_log("output: {$output[0]}", 'ExceptionLogProducerEcho.log');
                if (!empty($output[0]) && is_string($output[0])) {
                    preg_match('/(?<=\()[^ ]+/', $output[0], $matches);
                    put_log("matches: $matches", 'ExceptionLogProducerEcho.log');
                    put_log("matches: {$matches[0]}", 'ExceptionLogProducerEcho.log');
                    if (!empty($matches[0])) {
                        $data['coder'] = $matches[0];
                    }