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:
Anmol Sethi 2020-12-04 02:00:19 -05:00
parent 8a3471cbc7
commit c15b526eff
No known key found for this signature in database
GPG Key ID: 8CEF1878FF10ADEB
1 changed files with 1 additions and 1 deletions

View File

@ -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));
+ } + }