Skip to content

Commit

Permalink
fix: warning log formatting (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
colesnodgrass authored May 16, 2024
1 parent 4e7c057 commit 6cab238
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/cmd/local/k8s/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (d *DefaultK8sClient) EventsWatch(ctx context.Context, namespace string) (w
}

func (d *DefaultK8sClient) LogsGet(ctx context.Context, namespace string, name string) (string, error) {
req := d.ClientSet.CoreV1().Pods(namespace).GetLogs(name, &coreV1.PodLogOptions{Previous: true})
req := d.ClientSet.CoreV1().Pods(namespace).GetLogs(name, &coreV1.PodLogOptions{})
reader, err := req.Stream(ctx)
if err != nil {
return "", fmt.Errorf("could not get logs for pod %s: %w", name, err)
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/local/local/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ func (c *Command) handleEvent(ctx context.Context, e *v1events.Event) {
if logs != "" {
pterm.Warning.Printfln(
"Encountered an issue deploying Airbyte:\n Pod: %s\n Reason: %s\n Message: %s\n Count: %d\n Logs: %s",
e.Name, e.Reason, e.Note, e.DeprecatedCount, logs,
e.Name, e.Reason, e.Note, e.DeprecatedCount, strings.TrimSpace(logs),
)
} else {
pterm.Warning.Printfln(
Expand Down

0 comments on commit 6cab238

Please sign in to comment.