imds-credential-server
imds-credential-server copied to clipboard
log all errors, add debug-flag
hello,
with this change I would like to propose the following:
- log all errors to console, so that we will be able to see all errors not just 2
- add debug-flag, to be able to snoop into the headers and raw responses
- minor change in the command-line parameters processing code (pointers to variables)
- get rid of fmt
I would like to continue to use fmt for all program usage errors and the version command, but the switch to log for printing identity does make sense.
Why do you want to change the parameter variable style?
Let's make the "log all errors" when debug is set but keep the existing "only log internal errors" when it's not set. The point is, e.g., 404s don't need to be logged, only unexpected problems from the code.