From 1647ae803dc4e6c60009b4e620aad3921d8ab827 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A0=82=E5=90=89=E8=AF=83=E5=BE=B7=E6=8B=89=E6=9B=BC?= =?UTF-8?q?=E6=9F=A5=E7=9A=84=E8=8B=B1=E8=B1=AA?= Date: Wed, 12 Aug 2026 15:11:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B8=E5=BF=83helpers=E5=86=85=E9=83=A8?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=94=B9=E7=94=A8LogHelper?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/helpers.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/helpers.php b/src/helpers.php index d9f6051..e3a7ba0 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -5,6 +5,7 @@ declare(strict_types=1); use Hyperf\Context\ApplicationContext; use Hyperf\Contract\StdoutLoggerInterface; use Hyperf\Logger\LoggerFactory; +use Dhd\Micro\Core\Library\LogHelper; use function Hyperf\Config\config; if (! function_exists('getNacosConfig')) { @@ -122,7 +123,7 @@ if (! function_exists('copy_file_safely')) { { $safeLog = function ($msg, $data) { try { - f_log($msg, $data); + LogHelper::error($msg, ['data' => $data]); } catch (Throwable $e) { // 忽略日志错误 }