Skip to content

fusemanager: Log by default - #2135

Merged
ktock merged 3 commits into
containerd:mainfrom
mmonaco:fm-logging
Sep 29, 2025
Merged

ktock merged 3 commits into
containerd:mainfrom
mmonaco:fm-logging

Conversation

@mmonaco

@mmonaco mmonaco commented Sep 25, 2025 •

Copy link
Copy Markdown
Contributor

fusemanager: Drop --debug flag (not used)

There's --log-level instead.

fusemanager: Hookup normal stdout+stderr by default

Dropping logging output by default is surprising. I think switching this as the default is safe to do for existing users.

fusemanager: Drop manual truncation of logPath

os.Create() truncates existing files already, but additionally works
cleanly if the path is a literal /dev/stdout or /dev/stderr which
would otherwise fail to be removed.

@ktock ktock left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I'll merge this after fixing the CI failure (#2136).

@ktock

ktock commented Sep 26, 2025

Copy link
Copy Markdown
Member

@mmonaco Could you add "Signed-off-by" line to the commit message? Also, please rebase on the latest main branch to fix the following CI failures:

148.2 vendor/github.com/containerd/stargz-snapshotter/service/keychain/cri/cri.go:54:29: cannot use server (variable of type *instrumentedService) as "k8s.io/cri-api/pkg/apis/runtime/v1".ImageServiceServer value in return statement: *instrumentedService does not implement "k8s.io/cri-api/pkg/apis/runtime/v1".ImageServiceServer (missing method mustEmbedUnimplementedImageServiceServer)

@mmonaco

mmonaco commented Sep 26, 2025

Copy link
Copy Markdown
Contributor Author

@mmonaco Could you add "Signed-off-by" line to the commit message? Also, please rebase on the latest main branch to fix the following CI failures:

148.2 vendor/github.com/containerd/stargz-snapshotter/service/keychain/cri/cri.go:54:29: cannot use server (variable of type *instrumentedService) as "k8s.io/cri-api/pkg/apis/runtime/v1".ImageServiceServer value in return statement: *instrumentedService does not implement "k8s.io/cri-api/pkg/apis/runtime/v1".ImageServiceServer (missing method mustEmbedUnimplementedImageServiceServer)

Done, and thanks :)

There's `--log-level` instead.

Signed-off-by: Matt Monaco <matt@monaco.cx>
Signed-off-by: Matt Monaco <mmonaco@augmentcode.com>
Dropping logging output by default is surprising. I think switching this as the default is safe to do for existing users.

Signed-off-by: Matt Monaco <matt@monaco.cx>
Signed-off-by: Matt Monaco <mmonaco@augmentcode.com>
`os.Create()` truncates existing files already, but additionally works
cleanly if the path is a literal `/dev/stdout` or `/dev/stderr` which
would otherwise fail to be removed.

Signed-off-by: Matt Monaco <matt@monaco.cx>
Signed-off-by: Matt Monaco <mmonaco@augmentcode.com>

@ktock ktock left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@ktock
ktock merged commit 34a4279 into containerd:main Sep 29, 2025
45 of 46 checks passed
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.

2 participants