Skip to content

Commit 2955d72

Browse files
committed
原有\App\Helpers\LogHelper::writeLog调用也要去掉,整个\App\Helpers\LogHelper类都要删除
1 parent fa18af0 commit 2955d72

2 files changed

Lines changed: 0 additions & 107 deletions

File tree

app/Service/ProxyService.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ public function __construct(ContainerInterface $container, LoggerFactory $logger
4141
$this->logPath = isset($config['log']['path']) ? $config['log']['path'] : BASE_PATH . '/runtime';
4242
$this->sqlHighlight = isset($config['log']['sql_highlight']) ? $config['log']['sql_highlight'] : true;
4343
$this->excludePatterns = isset($config['filters']['exclude_patterns']) ? $config['filters']['exclude_patterns'] : [];
44-
45-
\App\Helpers\LogHelper::init($this->logPath);
4644
}
4745

4846
public function onConnect(\Swoole\Server $server, int $fd, int $reactorId): void
@@ -200,16 +198,6 @@ private function handleQuery(\Swoole\Server $server, ConnectionContext $context,
200198
'elapsed_ms' => $elapsedMs,
201199
'affected_rows' => $affectedRows,
202200
]);
203-
204-
\App\Helpers\LogHelper::writeLog(
205-
(string) $context,
206-
$sql,
207-
$group,
208-
$transactionId,
209-
$elapsedMs,
210-
$affectedRows,
211-
$this->sqlHighlight
212-
);
213201
}
214202
}
215203

@@ -260,16 +248,6 @@ private function handleExecute(\Swoole\Server $server, ConnectionContext $contex
260248
'transaction_id' => $transactionId,
261249
'statement_id' => $stmtId,
262250
]);
263-
264-
\App\Helpers\LogHelper::writeLog(
265-
(string) $context,
266-
"[EXECUTE] " . $sql,
267-
$group,
268-
$transactionId,
269-
0,
270-
0,
271-
$this->sqlHighlight
272-
);
273251
}
274252

275253
$this->forwardToTarget($server, $context, $packet);

app/helpers/LogHelper.php

Lines changed: 0 additions & 85 deletions
This file was deleted.

0 commit comments

Comments
 (0)