Compare commits
2 Commits
30e2cc5943
...
c0586c93cd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c0586c93cd | ||
|
|
1647ae803d |
@@ -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