Skip to content

Commit

Permalink
Change received message to slog info mssage
Browse files Browse the repository at this point in the history
  • Loading branch information
imdawon committed Mar 30, 2024
1 parent df8ccb6 commit e6ea319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/drawbridge/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func (d *Drawbridge) SetUpProtectedServiceTunnel() error {
// Trim unused buffer null terminating characters.
buf = bytes.Trim(buf, "\x00")
// Print the incoming data - for debugging
fmt.Printf("Received: %s\n", buf)
slog.Info("Emissary Connection", slog.Any("Message Received", buf))

emissaryRequestPayload := string(buf[:])
if strings.Contains(emissaryRequestPayload, "PS_CONN") {
Expand Down

0 comments on commit e6ea319

Please sign in to comment.