核心helpers内部日志改用LogHelper
This commit is contained in:
@@ -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) {
|
||||
// 忽略日志错误
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user