-
Notifications
You must be signed in to change notification settings - Fork 435
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
clasp logs returns strange output #216
Comments
I'm having this same issue. Also, I don't know why isn't starting from the end, these logs are very old and I've got up-to-date logs that should been retrieved.
|
Thanks for reporting this detailed issue first of all.
I'll test this function and will have to fix this. |
Hey @nirazul and @shai hopefully I can give some clarity on this. Those first few logs that you see with
which, to my understanding is just Apps Scripts setting up the StackDriver logging. You can see that in the StackDriver Logging UI with this URL However, when using As far as getting older logs, it looks like the API has it set to old --> new by default. I can go ahead and switch that to get most recent first. Please let me know if this helps, and what else you'd like to see improved! |
Changes ordering of logs and also fixes error that looks like this: ``` (node:20742) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'length' of undefined (node:20742) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. ``` when entries is undefined. Signed-off-by: campionfellin <[email protected]> Relates to #216 - [x] `npm run test` succeeds. - [x] `npm run lint` succeeds. - [ ] Appropriate changes to README are included in PR.
Dear @campionfellin ,
I've actually was able to figure this out, since I was able to reference the timestamp from the console to those logs in the UI and already knew these logs belonged to the initialisation of the service.
I would love to see that improve, for sure. I'm sure no-one else would want to see an exception here.
Please, do!
I love the spirit and I'm sure that the more I use |
Sounds good. @campionfellin Are there more changes we should make? LMK when we should cut a new release with the |
You guys are awesome! Thanks for taking this issue and applying a fix for it so quickly :) Looking forward to the next release... |
Expected Behavior
Returns logs from
Logger.log('stuff')
Actual Behavior
Returns the following:
instead of Logs
Steps to Reproduce the Problem
As this error might be a google project config problem, there's no poit in trying to reproduce it.
Specifications
The text was updated successfully, but these errors were encountered: