diff --git a/packages/java-shell/src/main/kotlin/com/mongodb/mongosh/ConsoleLogSupport.kt b/packages/java-shell/src/main/kotlin/com/mongodb/mongosh/ConsoleLogSupport.kt index 382f1ac777..b6eeb17ff9 100644 --- a/packages/java-shell/src/main/kotlin/com/mongodb/mongosh/ConsoleLogSupport.kt +++ b/packages/java-shell/src/main/kotlin/com/mongodb/mongosh/ConsoleLogSupport.kt @@ -14,7 +14,9 @@ internal class ConsoleLogSupport(context: MongoShellContext, converter: MongoShe @Suppress("JSPrimitiveTypeWrapperUsage") val console = context.eval("new Object()") console["log"] = print + console["warn"] = print console["error"] = print + console["info"] = print context.bindings["console"] = console } @@ -26,4 +28,4 @@ internal class ConsoleLogSupport(context: MongoShellContext, converter: MongoShe this.printedValues = null } } -} \ No newline at end of file +}