Logging in Janusgraph 0.6.3
Mladen Marović
Hello, yesterday I tried to upgrade some Janusgraph instances from 0.5.3 to 0.6.2 first and then to 0.6.3. The 0.6.2 upgrade was successful, but after upgrading to 0.6.3, I noticed that the default SLF4J binding changed between these two versions. This is shown in the following log excerpts:
As a result, logback was used instead of log4j and by default the log level was set to DEBUG and redirected to STDOUT. From what I've seen in
However, in Janusgraph 0.6.3 there is no
everything works again. Alternatively, I could delete the Is this a bug or an intended change? I haven't seen any additional upgrade instructions for 0.6.3 commenting this. Best regards, Mladen Marović |
|
hadoopmarc@...
Hi Mladen,
I guess this behviour was introduced in https://github.com/JanusGraph/janusgraph/pull/3217. Note that there are many vulnerability issues with log4j: https://mvnrepository.com/artifact/log4j/log4j This it makes it unlikely that your suggestion would make it into a possible 0.6.4. The current 1.0.0.rc2 uses log4j2 and it is not shipped with slf4j-reload4j, but the janusgraph-server.sh script starts with log4j by default, anyway. The specific line you found is still present, though, which is weird. So you can provide it as feedback on 1.0.0.rc2, see https://lists.lfaidata.foundation/g/janusgraph-users/topic/announce_janusgraph_1_0_0/97263880 Best wishes, Marc |
|
Florian Hockmann
Hi,
I just looked into this and want to keep everyone in the loop here who might not be following our GitHub issues where I also just described my findings:
https://github.com/JanusGraph/janusgraph/issues/3681#issuecomment-1523617456
--- It looks to me like the issue was introduced by an update of Slf4j in #2967 which included a commit with the message: relocate slf4j-log4j12 as slf4j-reload4j. That's probably why Log4j isn't present anymore in the ---
I created a PR to switch the default logging library to Relaod4j just like Mladen suggested: https://github.com/JanusGraph/janusgraph/pull/3745
The PR of course needs to be reviewed, but I think that we can fix this with the upcoming 0.6.4 release.
Regards, Florian
Von: janusgraph-users@... <janusgraph-users@...> Im Auftrag von hadoopmarc@...
Hi Mladen, |
|