jbang icon indicating copy to clipboard operation
jbang copied to clipboard

--quiet still shows INFO logs for JShell when using Docker

Open loicmathieu opened this issue 6 months ago • 2 comments

Describe the bug When using --quiet only error logs should be displayed. But when using a JShell script two logs are still emitted when launching JBang from Docker:

Aug 16, 2024 12:25:34 PM java.util.prefs.FileSystemPreferences$1 run
NFO: Created user preferences directory.

To Reproduce Create this script in a test.jsh file:

System.out.println("Hello World!");

Launch it via Docker with --quiet:

docker run -v `pwd`:/ws --workdir=/ws -ti jbangdev/jbang-action --quiet test.jsh

Expected behavior No INFO logs should be displayed when running with --quiet in Docker.

JBang version

[jbang] [0:282] jbang version 0.117.1
Cache: /jbang/.jbang/cache
Config: /jbang/.jbang
Repository: /root/.m2/repository
Java: /opt/java/openjdk [11.0.11]
OS: linux
Arch: x64
Shell: bash
0.117.1

loicmathieu avatar Aug 16 '24 12:08 loicmathieu