-
Notifications
You must be signed in to change notification settings - Fork 295
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
Remove console log usage #10341
Remove console log usage #10341
Conversation
@@ -106,7 +106,7 @@ export class IPyWidgetMessageDispatcher implements IIPyWidgetMessageDispatcher { | |||
public receiveMessage(message: IPyWidgetMessage): void { | |||
switch (message.message) { | |||
case IPyWidgetMessages.IPyWidgets_logMessage: | |||
traceInfoIfCI(`Widget Message: ${message.payload}`); | |||
traceInfo(`Widget Message: ${message.payload}`); |
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.
Made this traceInfo because after these two changes, this is really only stuff that we actually want to show to the user (or us when request logs).
@@ -393,9 +390,6 @@ class ProxyKernel implements IMessageHandler, Kernel.IKernelConnection { | |||
} | |||
private messageHookInterceptor(msg: KernelMessage.IIOPubMessage): boolean | PromiseLike<boolean> { | |||
try { | |||
logMessageOnlyOnCI( |
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.
Figured if we needed these later, we can add a new IPYWidgets_LogMessageIfCI
message. Then on the other side it would only log these if running on CI.
Codecov Report
@@ Coverage Diff @@
## main #10341 +/- ##
=====================================
- Coverage 64% 64% -1%
=====================================
Files 212 212
Lines 9557 9557
Branches 1527 1527
=====================================
- Hits 6148 6145 -3
- Misses 2932 2934 +2
- Partials 477 478 +1
|
Fixes #10202
Related to the PR I have in the ipywidget npm module, this removes uses of console.log in our renderers. Mostly it was widget stuff.
microsoft/vscode-jupyter-ipywidgets#3