summaryrefslogtreecommitdiffstats
path: root/internal
diff options
context:
space:
mode:
authorAhmed AbdelHalim <[email protected]>2025-09-10 16:55:27 +0200
committerAhmed AbdelHalim <[email protected]>2025-09-10 16:55:27 +0200
commitae458c03646120ae440bbce863f40a09fd4dd559 (patch)
treeeee5616281ad3310bf461dda5cfef2758c6f8fc9 /internal
parent9c7653c461f523228096bbe4c014abcb1e02d96e (diff)
Update logging messages
Diffstat (limited to 'internal')
-rw-r--r--internal/wireguard.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/wireguard.go b/internal/wireguard.go
index ebfa0bb..2efcafa 100644
--- a/internal/wireguard.go
+++ b/internal/wireguard.go
@@ -95,14 +95,14 @@ func ToggleConnection(name string) ([]byte, error) {
func stopActiveConnections(activeConnections []*WireGuardConnection) ([]byte, error) {
var output []byte
for _, activeConnection := range activeConnections {
- log.Printf("Stopping connection %s.", activeConnection.Name)
+ log.Printf("Stopping connection %s", activeConnection.Name)
cmd := exec.Command("sudo", "wg-quick", "down", activeConnection.Name)
out, err := cmd.CombinedOutput()
if err != nil {
return nil, err
}
output = append(output, out...)
- log.Printf("Successfully stopped connection %s.", activeConnection.Name)
+ log.Printf("Successfully stopped connection %s", activeConnection.Name)
}
return output, nil
}
@@ -111,13 +111,13 @@ func startConnection(connection *WireGuardConnection) ([]byte, error) {
if connection.Active {
return nil, nil
}
- log.Printf("Starting connection %s.", connection.Name)
+ log.Printf("Starting connection %s", connection.Name)
cmd := exec.Command("sudo", "wg-quick", "up", connection.Name)
output, err := cmd.CombinedOutput()
if err != nil {
return nil, err
}
- log.Printf("Successfully started connection %s.", connection.Name)
+ log.Printf("Successfully started connection %s", connection.Name)
return output, nil
}