-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Logging when cloud function result contains base64 image #3918
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
Comments
I wrote a test case see #3919 Just want to make sure I understand the issue. Here's the log out put from this test:
The message field of the log object is ~1000 characters which is set by this var in the LoggerController. So, is my test accurate and the issue is that this log of ~1k char is too long -- which I buy, just making sure? |
yes, this is similar to what I had.. |
@flovilmart any thoughts? I chose 1k char limit to match parse.com. I don't really see a way to change this for the duration of a function since the logger is shared....
|
I'm ok with 1, that will help. |
I'm not going to have time to put a bow on this in the next month. could close or someone else can pick it up? |
@acinader problem is it logs 3 components that can be long: input, result and params:
Input is stringified and trimmed params. Result is trimmed as well, but params is just a raw object which can be huge. Why not remove 3rd parameter completely and log it with verbose level? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Is there a way to turn off logging on a specific cloud function but not for all of them? My issue is that the result of my cloud function contains a base64 image, and Parse Server by default output the base64 string to the log, which makes my daily log files extremely large and hard to maintain.
setting logLevel = 'warn' instead of 'info' solves this problem but then I lost the I/O information of other cloud functions which I also need..
The text was updated successfully, but these errors were encountered: