-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
chore: add log for easy debug #1253
Conversation
Thank you for your contribution. I've just checked and your commit doesn't appear to be signed-off. That's something we need before your Pull Request can be merged. Please see our contributing guide. |
Signed-off-by: haozibi <haozibi@foxmail.com>
You should be able to get this logging by toggling one of the environment variables. Which ones have you tried? Did they work for you? https://github.com/openfaas/faas/tree/master/watchdog |
@alexellis hello I have seen the environment variables of watchdog. When I debug the program, I enabled the And I saw that there is no environment variable to open this error output. |
I am OK with the idea, but I'd like to see it as |
The error message is written in the format Lines 164 to 168 in b572e77
I think adding an environment variable for simple log output is a bit complicated. Do you have any good suggestions? |
I'm weary of adding additional log messages. I guess my question would be, why did "buildFunctionInput" throw an error for you? How were you using it? |
I used a LoadBalance before the gateway. Due to the LoadBalance bug, the gateway sends the request to the watchdog very slowly. If the request body is very large, it may cause I just think that adding one will be more obvious, and the error returned by the gateway is a bit too simple.
|
Sounds good to me. Thank you for explaining it. |
Thanks for your first PR. You're now a contributor and may appear on openfaas.com. You can join Slack and chat with us more. It would be great to understand more of what you're building and how you are using the project. We also have other areas where contributions are needed. -- |
Description
Just add logs to watchdog for easy debugging
Motivation and Context
design/approved
labelHow Has This Been Tested?
No tests are required
Types of changes
Checklist:
git commit -s