Skip to content

Commit

Permalink
fix: cast string types to strings
Browse files Browse the repository at this point in the history
  • Loading branch information
josegonzalez committed Jan 29, 2024
1 parent 97a9f67 commit 66268aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func registerContainers(ctx context.Context) error {

func watchEvents(ctx context.Context, sinceTimestamp int64) {
filters := filters.NewArgs(
filters.Arg("type", events.ContainerEventType),
filters.Arg("type", string(events.ContainerEventType)),
filters.Arg("label", DOKKU_APP_LABEL),
filters.Arg("label", DOKKU_PROCESS_TYPE_LABEL),
)
Expand Down Expand Up @@ -256,7 +256,7 @@ func handleEvent(ctx context.Context, event events.Message) error {
log.Info().
Str("container_id", containerShortId).
Str("app", appName).
Str("restart_policy", container.HostConfig.RestartPolicy.Name).
Str("restart_policy", string(container.HostConfig.RestartPolicy.Name)).
Int("restart_count", container.RestartCount).
Int("max_restart_count", container.HostConfig.RestartPolicy.MaximumRetryCount).
Msg("rebuilding_app")
Expand Down

0 comments on commit 66268aa

Please sign in to comment.