Skip to content

Commit

Permalink
chore: print more log
Browse files Browse the repository at this point in the history
  • Loading branch information
bitxeno committed Jul 1, 2024
1 parent d0675b3 commit 8f3983d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions internal/manager/device_manager_avahi.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,11 @@ func (dm *DeviceManager) Start() {
log.Err(err).Msg("loadLockdownDevices error: ")
continue
}
log.Tracef("lockdown devices count >> %v", len(lockdownDevices))

// 添加已连接设备,TODO:handshake检测是否可真实连接
if lockdownDev, ok := lockdownDevices[macAddr]; ok {
log.Tracef("add lockdown device >> %v", lockdownDev)
udid := lockdownDev.Name
dm.devices.Store(udid, model.Device{
ID: utils.Md5(udid),
Expand Down
3 changes: 2 additions & 1 deletion internal/manager/lockdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"bytes"
"fmt"
"os"
"strings"

"github.com/bitxeno/atvloadly/internal/app"
"github.com/bitxeno/atvloadly/internal/log"
Expand All @@ -22,7 +23,7 @@ func loadLockdownDevices() (map[string]model.LockdownDevice, error) {

devices := map[string]model.LockdownDevice{}
for _, file := range files {
if file.IsDir() || file.Name() == "SystemConfiguration.plist" {
if file.IsDir() || strings.HasPrefix(file.Name(), ".") || file.Name() == "SystemConfiguration.plist" {
continue
}

Expand Down
10 changes: 10 additions & 0 deletions web/static/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,11 @@ entities@^4.2.0:
resolved "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz"
integrity sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==

[email protected]:
version "0.14.54"
resolved "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.14.54.tgz"
integrity sha512-jtdKWV3nBviOd5v4hOpkVmpxsBy90CGzebpbO9beiqUYVMBtSc0AL9zGftFuBon7PNDcdvNCEuQqw2x0wP9yug==

esbuild@^0.14.27:
version "0.14.54"
resolved "https://registry.npmjs.org/esbuild/-/esbuild-0.14.54.tgz"
Expand Down Expand Up @@ -604,6 +609,11 @@ fs.realpath@^1.0.0:
resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz"
integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==

fsevents@~2.3.2:
version "2.3.2"
resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz"
integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==

function-bind@^1.1.1:
version "1.1.1"
resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz"
Expand Down

0 comments on commit 8f3983d

Please sign in to comment.