diff --git a/command/wireguard.go b/command/wireguard.go index 6609d16..1001b0f 100644 --- a/command/wireguard.go +++ b/command/wireguard.go @@ -48,7 +48,7 @@ func StopWireguard() { configFileName := getConfigFileName() if err := exec.Command("/bin/sh", "-c", fmt.Sprintf("wg-quick down %s", configFileName)).Run(); err != nil { - log.Errorf("停止wireguard服务端失败: %v", err.Error()) + log.Errorf("停止wireguard[%s]服务端失败: %v", configFileName, err.Error()) } return @@ -60,7 +60,7 @@ func StartWireguard() { configFileName := getConfigFileName() if err := exec.Command("/bin/sh", "-c", fmt.Sprintf("wg-quick up %s", configFileName)).Run(); err != nil { - log.Errorf("启动wireguard服务端失败: %v", err.Error()) + log.Errorf("启动wireguard[%s]服务端失败: %v", configFileName, err.Error()) } return