How to prevent a journal from re-issuing from a list of duplicate "Empty list of view files. Disabling" messages

I have a logback configured using logback.xml which is here: http://pastebin.com/KuqUEkXy .

Every minute I see a log message emitted by the form:

18: 26: 21,486 | -INFO in ReconfigureOnChangeTask (genus: 1478715201485) - A list of files to view. Shutdown

Why is this happening and how can I get rid of them?

+4
source share
4 answers

I can tell you why this happens, but not how to get rid of them.

ReconfigureOnChangeTaskwill write this line if it has no files to view.

, , , , jar .

+4

scan = "true"

+2

In your log configuration (logback.xml), you must disable (or, better, just delete) the scan attributes in the configuration item

+1
source

Perhaps by overriding logback.xml from the jar file by the file in the file system. Instead of runnnig jar should be called the main class.

Suppose we have a jar file with a manifest:

META-INF/MANIFEST.MF
...
Main-Class: a.b.c.jetty.MyMainClass

Call MyMainClass:

java -cp path2logbackXml:path2jarfile a.b.c.MyMainClass

instead

java -jar path2jarfile
0
source

Source: https://habr.com/ru/post/1660336/


All Articles