Skip to content

use sdk to obtain container logs - #336

Merged
jesseduffield merged 1 commit into
masterfrom
inspect-via-sdk
May 11, 2022
Merged

use sdk to obtain container logs#336
jesseduffield merged 1 commit into
masterfrom
inspect-via-sdk

Conversation

@jesseduffield

Copy link
Copy Markdown
Owner

MUCH faster!

I'm removing the commandTemplates.containerLogs key from the config, which previously defaulted to docker logs --timestamps --follow --since=60m {{ .Container.ID }} and I'm replacing it with:

logs:
  timestamps: true
  since: '60m'

So anybody who's modified the commandTemplates.containerLogs command may need to go and update their config to retain the same settings.

If somebody is calling the logs command without going through docker, then I'll need to restore the old approach. Happy to wait and see if that's the case.

@jesseduffield
jesseduffield merged commit c4e41b3 into master May 11, 2022
@jesseduffield
jesseduffield deleted the inspect-via-sdk branch May 11, 2022 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant