From 43b33f71d670945de2fd6c0bf04cc16d94c385cd Mon Sep 17 00:00:00 2001 From: xiaocai <1643013940@qq.com> Date: Tue, 4 Jun 2024 14:57:44 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=A0=B8=E5=BF=83=E7=BC=93=E5=AD=98):=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增添加设备日志 --- driverbox/helper/cache.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/driverbox/helper/cache.go b/driverbox/helper/cache.go index e2202ef..9ffcc2b 100644 --- a/driverbox/helper/cache.go +++ b/driverbox/helper/cache.go @@ -378,6 +378,9 @@ func (c *cache) Reset() { // * 设备影子 // * 持久化文件 func (c *cache) AddOrUpdateDevice(device config.Device) error { + if Logger != nil { + Logger.Info("core cache add device", zap.Any("device", device)) + } // 自动补全设备描述 if device.Description == "" { device.Description = device.ID