From 6aa213757b8b79fd805772d0cd033cac27c2acbe Mon Sep 17 00:00:00 2001 From: Dmitry Bushev Date: Fri, 23 Feb 2024 18:19:06 +0000 Subject: [PATCH] Unexpected warning when running a standalone script (#9114) close #9109 Fixes the issue when the runner displays unexpected log messages ``` > .\built-distribution\enso-engine-0.0.0-dev-windows-amd64\enso-0.0.0-dev\bin\enso --run .\test.enso [WARN] [2024-02-20T12:04:21+01:00] [enso.org.enso.interpreter.runtime.SerializationPool] Serialization of module `test` failed: Unable to write cache data for test.` 42 ``` --- .../org/enso/interpreter/runtime/TruffleCompilerContext.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/runtime/src/main/java/org/enso/interpreter/runtime/TruffleCompilerContext.java b/engine/runtime/src/main/java/org/enso/interpreter/runtime/TruffleCompilerContext.java index 3dd92ff87306..b44f17a6d20f 100644 --- a/engine/runtime/src/main/java/org/enso/interpreter/runtime/TruffleCompilerContext.java +++ b/engine/runtime/src/main/java/org/enso/interpreter/runtime/TruffleCompilerContext.java @@ -385,8 +385,8 @@ private Callable doSerializeModule( return saved != null; } catch (Throwable e) { logSerializationManager( - e instanceof IOException ? Level.WARNING : Level.SEVERE, - "Serialization of module `" + name + "` failed: " + e.getMessage() + "`", + e instanceof IOException ? Level.FINE : Level.SEVERE, + "Serialization of module `" + name + "` failed: " + e.getMessage(), e); throw e; } finally {