Skip to content

Commit 972bcb2

Browse files
committed
feat: cleanup
1 parent 57b50a8 commit 972bcb2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

agent/api_server.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ func startHttpServer() {
8181
e.DELETE("/containers/:uuid", deleteContainer)
8282
e.GET("/containers/:uuid/status", statusOfContainer)
8383

84+
// Log API
85+
e.GET("/journald/stream", streamJournalLogs)
86+
8487
ip, _, err := net.ParseCIDR(config.WireguardConfig.Address)
8588
if err != nil {
8689
log.Fatalf("Failed to parse wireguard address: %v", err)
8790
}
8891

89-
// Log API
90-
e.GET("/journald/stream", streamJournalLogs)
91-
9292
if err := e.Start(fmt.Sprintf("%s:3332", ip.String())); err != nil && !errors.Is(err, http.ErrServerClosed) {
9393
e.Logger.Fatal(err)
9494
}

0 commit comments

Comments
 (0)