-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
builder: don't log requests/responses by default #368
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the approach is sound and I see why we want to keep and not just get rid of them. Where should this information be documented?
39437df
to
a9e4d7c
Compare
That's a good question. This is probably something we should detail in the main |
I don't think leaving it undocumented helps the situation. I would rather inform users of the potential risk as opposed to having say I didn't know that was possible. In this case, I think the right thing to do is add a section to the integration README for Troubleshooting. In this section, we can explain the use of Setting |
a9e4d7c
to
f54593f
Compare
@nywilken good call; I like the I've just pushed docs update for this, when you have time please let me know what you think about it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small changes to the text but otherwise good to go.
f54593f
to
0d83598
Compare
The logs of the Azure builder are very verbose by default, as they log the contents of every request/response to/from the Azure APIs. For regular debugging of a template, this is not necessary, as just looking at the errors returned by the calls will generally give enough information to proceed with fixing the template. These logs may be relevant when attempting to debug the plugin itself however, so we add one extra environment variable to allow the plugin to print them out, PACKER_AZURE_DEBUG_LOGS. If it is defined, and non empty, the requests and responses will be dumped to stderr, otherwise, they are silent.
0d83598
to
cbeb24e
Compare
The logs of the Azure builder are very verbose by default, as they log the contents of every request/response to/from the Azure APIs.
For regular debugging of a template, this is not necessary, as just looking at the errors returned by the calls will generally give enough information to proceed with fixing the template.
These logs may be relevant when attempting to debug the plugin itself however, so we add one extra environment variable to allow the plugin to print them out, PACKER_AZURE_DEBUG_LOGS.
If it is defined, and non empty, the requests and responses will be dumped to stderr, otherwise, they are silent.