containerd/cmd
Daniel Canter ee0f2e9064 Change os.Stderr reassign for Windows service
Previously we were reassigning os.Stderr to the panic.log file we create
when getting asked to run Containerd as a Windows service. The panic.log
file was used as a means to easily collect panic stacks as Windows
services don't have regular standard IO, and the usual recommendation
is to either write to the event log or just to a file in the case of
running as a service.

One place where this panic.log flow was biting us was with shim logging,
which is forwarded from the shim and copied to os.Stderr directly which was
causing shim logs to get forwarded to this panic.log file instead of just
panics. We expose an additional `--log-file` flag if you ask to run a
windows service which is the main way you'd get Containerd logs, and with
this change all of the shim logging which would today end up in panic.log
will now also go to this log file.

Signed-off-by: Daniel Canter <dcanter@microsoft.com>
2022-08-01 16:36:41 -07:00
..
containerd Change os.Stderr reassign for Windows service 2022-08-01 16:36:41 -07:00
containerd-shim Use proto.Marshal instead of calling Marshal() on objects 2022-04-20 17:14:24 +00:00
containerd-shim-runc-v1 Run go fmt with Go 1.17 2021-08-22 09:31:50 +09:00
containerd-shim-runc-v2 Restore sandboxes on daemon restart 2022-04-08 13:33:48 -07:00
containerd-stress typo fixes under cmd. 2022-03-12 11:32:31 -08:00
ctr Use httputil.DumpRequestOut for dumping client req 2022-07-27 12:36:14 +01:00
gen-manpages refactor: move from io/ioutil to io and os package 2021-09-21 09:50:38 +08:00
protoc-gen-go-fieldpath Don't generate a Go file, if that would be empty 2022-04-19 22:15:45 +00:00