-
Notifications
You must be signed in to change notification settings - Fork 923
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
Octokit log is not going into pino from Probot #1673
Comments
Thanks for opening this issue. A contributor should be by to give feedback soon. In the meantime, please check out the contributing guidelines and explore other ways you can get involved. |
kammerjaeger
changed the title
Octokit log is not going into pino form Probot
Octokit log is not going into pino from Probot
Apr 12, 2022
Should this be closed as resolved in #1676? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Current Behavior
The throttling log is not showing up in the log file (that is send to ESC in our case), instead it is printed to the console.
Reason: Currently the octokit.log object is not set correctly when called form probot.auth()
The following test shows it, I did not make sure that it is true on success, I was only using it for looking for the log outputs, for now:
Expected behavior/code
The logging goes into the pino logger. The test should not show any console logging.
Environment
Possible Solution
I'm still investigating why this is not set correctly, as seen in the example I tried to set the logger directly but that is not working for me.
I will provide a better test once I figure out what actually goes wrong.
Edit:
I think it may be the missing Octokit options here. I will test this more in the next days:
probot/src/probot.ts
Line 74 in 420f886
Additional context/Screenshots
NA
The text was updated successfully, but these errors were encountered: