Skip to content

Commit

Permalink
chore(logging): reduce the number of logged lines by consolidating th…
Browse files Browse the repository at this point in the history
…em EE-6500 (#559)
  • Loading branch information
andres-portainer committed Dec 29, 2023
1 parent a0f5815 commit a921721
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions edge/client/portainer_edge_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,9 @@ func (client *PortainerEdgeClient) GetEnvironmentStatus(flags ...string) (*PollS

timeZone := time.Local.String()
req.Header.Set(agent.HTTPResponseAgentTimeZone, timeZone)
log.Debug().Str("timeZone", timeZone).Msg("sending timeZone header")

req.Header.Set(agent.HTTPResponseAgentPlatform, strconv.Itoa(int(client.agentPlatform)))
log.Debug().Int("header", int(client.agentPlatform)).Msg("sending agent platform header")
log.Debug().Int("agent_platform", int(client.agentPlatform)).Str("time_zone", timeZone).Msg("sending headers")

req.Header.Set(agent.HTTPResponseUpdateIDHeaderName, strconv.Itoa(client.metaFields.UpdateID))

Expand Down

0 comments on commit a921721

Please sign in to comment.