mirror of
https://github.com/coder/code-server.git
synced 2024-11-27 10:09:51 +03:00
vscode: Fix exthost logging
Closes #2364 See #2366 cc @code-asher My previous commit didn't fix anything but still good to update @coder/logger.
This commit is contained in:
parent
8a3471cbc7
commit
c15b526eff
@ -2682,7 +2682,7 @@ index 0000000000000000000000000000000000000000..6b7c5ffd2ef2f321e32b6ebf1e6ad93b
|
|||||||
+ case '__$console':
|
+ case '__$console':
|
||||||
+ const fn = this.logger[event.severity === 'log' ? 'info' : event.severity];
|
+ const fn = this.logger[event.severity === 'log' ? 'info' : event.severity];
|
||||||
+ if (fn) {
|
+ if (fn) {
|
||||||
+ fn('console', field('arguments', event.arguments));
|
+ fn.bind(this.logger)('console', field('arguments', event.arguments));
|
||||||
+ } else {
|
+ } else {
|
||||||
+ this.logger.error('Unexpected severity', field('event', event));
|
+ this.logger.error('Unexpected severity', field('event', event));
|
||||||
+ }
|
+ }
|
||||||
|
Loading…
Reference in New Issue
Block a user