OlegKashtanov opened a new issue, #3289:
URL: https://github.com/apache/bookkeeper/issues/3289
**BUG REPORT**
***Describe the bug***
In official image **apache/bookkeeper:4.15.0** there is a DEBUG log level by
default when you start the container even the logging is configured for using
INFO level.
BK java system properties:
```
-Dlog4j.configurationFile=log4j2.xml -Dbookkeeper.log.root.level=INFO
-Dbookkeeper.log.root.appender=CONSOLE
```
log4j2.xml:
```
<Configuration status="warn" monitorInterval="10">
<Properties>
<Property name="bookkeeper.log.dir">.</Property>
<Property name="bookkeeper.log.file">bookkeeper-server.log</Property>
<Property name="bookkeeper.log.root.level">INFO</Property>
<Property name="bookkeeper.log.root.appender">CONSOLE</Property>
</Properties>
<Appenders>
<Console name="CONSOLE" target="SYSTEM_OUT">
<PatternLayout pattern="%d{ISO8601} - %-5p - [%t:%C{1}@%L] -
%m%n"/>
</Console>
<File name="TRACEFILE"
fileName="${sys:bookkeeper.log.dir}/bookkeeper-trace.log">
<PatternLayout pattern="%d{ISO8601} - %-5p [%t:%C{1}@%L][%ndc] -
%m%n"/>
</File>
<RollingFile name="ROLLINGFILE"
fileName="${sys:bookkeeper.log.dir}/${sys:bookkeeper.log.file}"
filePattern="${sys:bookkeeper.log.dir}/${sys:bookkeeper.log.file}%d{.yyyy-MM-dd}">
<PatternLayout pattern="%d{ISO8601} - %-5p [%t:%C{1}@%L] -
%m%n"/>
<Policies>
<TimeBasedTriggeringPolicy modulate="true"/>
</Policies>
<DefaultRolloverStrategy max="100"/>
</RollingFile>
</Appenders>
<Loggers>
<Root level="${sys:bookkeeper.log.root.level}">
<AppenderRef ref="${sys:bookkeeper.log.root.appender}"/>
</Root>
</Loggers>
</Configuration>
```
There is no issue with **apache/bookkeeper:4.14.5**,
**apache/bookkeeper:4.14.4**, **apache/bookkeeper:4.14.3** and the **latest**
images.
So, there is issue only in **branch-4.15**. [Comparing
](https://github.com/apache/bookkeeper/compare/master...branch-4.15)master and
branch-4.15, I observed the changes which are related to the logging in
**bk_test_bin_common.sh** script.
***To Reproduce***
Steps to reproduce the behavior:
1. Start the container with bookkeeper:4.15.0 image
```
docker run -it \
--env JAVA_HOME=/usr/lib/jvm/java-11 \
--entrypoint "/bin/bash" \
apache/bookkeeper:4.15.0 \
-c "/opt/bookkeeper/bin/bookkeeper localbookie 3"
```
2. Look at the log level.
***Expected behavior***
The INFO log level is expected.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]