核心helpers内部日志改用LogHelper

This commit is contained in:
堂吉诃德拉曼查的英豪
2026-08-12 15:11:44 +08:00
parent ddc49e5b6a
commit 1647ae803d

View File

@@ -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) {
// 忽略日志错误
}