aws-node-termination-handler icon indicating copy to clipboard operation
aws-node-termination-handler copied to clipboard

Node Termination Handler only logs to stderr

Open vbyrd opened this issue 3 years ago • 0 comments
trafficstars

Describe the bug NTH only logs to stderr

See this line of code for the culprit: https://github.com/aws/aws-node-termination-handler/blob/70eab8817e3b16482d58ae9a12f5bdb505ca5970/cmd/node-termination-handler.go#L59

Steps to reproduce View log output of the NTH with stderr redirector to /dev/null

Expected outcome NTH logs to stdout for normal events and stderr for actual error events.

Application Logs aws-node-termination-handler-logs

Environment

  • NTH App Version: v1.16.5
  • NTH Mode (IMDS/Queue processor): QP
  • OS/Arch: linux
  • Kubernetes version: 1.22
  • Installation method: Helm

vbyrd avatar Aug 05 '22 19:08 vbyrd