Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: nm log level error #605

Merged
merged 1 commit into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions network/nm_custom_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
package network

import (
_ "github.com/linuxdeepin/go-lib/gettext"
"github.com/linuxdeepin/dde-daemon/network/nm"
_ "github.com/linuxdeepin/go-lib/gettext"
)

// Custom device types, use string instead of number, used by front-end
Expand Down Expand Up @@ -69,7 +69,7 @@ func getCustomDeviceType(devType uint32) (customDevType string) {
return deviceWifiP2p
case nm.NM_DEVICE_TYPE_UNKNOWN:
default:
logger.Error("unknown device type", devType)
logger.Debug("unknown device type", devType)
}
return deviceUnknown
}
Expand Down
2 changes: 1 addition & 1 deletion network/utils_dbus_nm.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func nmGeneralGetDeviceHwAddr(devPath dbus.ObjectPath, perm bool) (hwAddr string
err = fmt.Errorf("there is no hardware address for device modem, adsl, tun")
default:
err = fmt.Errorf("unknown device type %d", devType)
logger.Error(err)
logger.Debug(err)
}
hwAddr = strings.ToUpper(hwAddr)
return
Expand Down