Compare commits

...

2 Commits

Author SHA1 Message Date
堂吉诃德拉曼查的英豪
c0586c93cd Merge remote-tracking branch 'origin/main' 2026-08-12 15:18:49 +08:00
堂吉诃德拉曼查的英豪
1647ae803d 核心helpers内部日志改用LogHelper 2026-08-12 15:11:44 +08:00

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