Project

General

Profile

Actions

Defect #3236

open

IdM generates extra logs in the Tomcat temp folder

Added by Tomáš Doischer over 1 year ago. Updated about 1 year ago.

Status:
Needs feedback
Priority:
Normal
Assignee:
Peter Štrunc
Category:
Logging
Target version:
Start date:
01/10/2023
Due date:
% Done:

80%

Estimated time:
Affected versions:
Owner:

Description

Superfluous logs are generated by the IdM. This can lead to some issues if the temp folder is not cleaned (long uptime).

It is not clear what is causing this.

Actions #2

Updated by Tomáš Doischer over 1 year ago

  • Tracker changed from Task to Defect
  • Affected versions 12.2.4 added
Actions #3

Updated by Tomáš Doischer about 1 year ago

  • Status changed from New to In Progress
  • Assignee set to Tomáš Doischer
Actions #4

Updated by Tomáš Doischer about 1 year ago

Nice thread on the topic:

https://stackoverflow.com/questions/50386520/spring-boot-spring-log-under-tmp
https://github.com/spring-projects/spring-boot/issues/12538

TL;DR: logback.xml config file shouldn't contain

<include resource="org/springframework/boot/logging/logback/base.xml"/>

but

<include resource="org/springframework/boot/logging/logback/defaults.xml" />

A simple change but I will first test it.

Actions #5

Updated by Tomáš Doischer about 1 year ago

  • % Done changed from 0 to 60

This does seem to do the trick. I tested this in a local instance of Tomcat and just manually changed the lockback-spring.xml file. The spring.log file was created in temp but is empty.

Otherwise, logging looks normal but we will need to discuss this ruther.

Actions #6

Updated by Tomáš Doischer about 1 year ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Tomáš Doischer to Peter Štrunc
  • % Done changed from 60 to 80
Actions #7

Updated by Petr Fišer about 1 year ago

Tomáš Doischer wrote in #note-4:

TL;DR: logback.xml config file shouldn't contain

> <include resource="org/springframework/boot/logging/logback/base.xml"/> >

but

> <include resource="org/springframework/boot/logging/logback/defaults.xml" /> >

A simple change but I will first test it.

FYI
In case this is the only change that is necessary, then (99% sure) we don't need to adjust container runscripts.

Actions

Also available in: Atom PDF