-
Notifications
You must be signed in to change notification settings - Fork 4
Add additional logs to wasp-bot
#61
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
Conversation
| maxTimeout: 120 * 1000, | ||
| onRetry: (e: Error) => { | ||
| onRetry: (error: Error) => { | ||
| logger.error(error); |
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.
Since this will log the message with the stack trace, etc...
| logger.debug( | ||
| "\nNumber of non-Wasp-team CLI events:", | ||
| nonWaspTeamEvents.length, | ||
| ); | ||
|
|
||
| const sortedNonWaspTeamEvents = _.sortBy(nonWaspTeamEvents, "timestamp"); | ||
|
|
||
| const sortedValidEvents = markAsCiEventBurstsFromDifferentUsersFromSameIp( | ||
| sortedNonWaspTeamEvents, | ||
| ); | ||
| logger.debug("\nNumber of valid CLI events:", sortedValidEvents.length); |
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.
Why do we care about these in our logging?
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 just wondered how much do these filters affect the data.
Not really necessary, it's debug logs.
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.
Also there might be betters ways to solve some of them I hope.
With time these become more costly (computation-wise).
Martinsos
left a comment
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.
All right! That is a lot of logging, it isn't obvious to me how some of these would be useful, but ok, if you think they are, let's go for it.
No description provided.