Skip to content

Commit

Permalink
feat(核心缓存): 添加日志
Browse files Browse the repository at this point in the history
- 新增添加设备日志
  • Loading branch information
xcocx committed Jun 4, 2024
1 parent fffa460 commit 43b33f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions driverbox/helper/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 43b33f7

Please sign in to comment.