Project

General

Profile

Actions

Bug #2920

closed

On tests, logger try to write to /var/log/rudder/core/

Added by François ARMAND about 12 years ago. Updated over 9 years ago.

Status:
Released
Priority:
2
Category:
Architecture - Code maintenance
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

When tests are executed, the "OPSLOG" logger try to write "/var/log/rudder/core/rudder-webapp.log".
It should be "/tmp/rudder-test-logs/rudder-webapp.log"

=> create a logback-test.xml correctly configured

-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.normation.rudder.web.services.Section2FieldServiceTest
10:26:19,744 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
10:26:19,744 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
10:26:19,744 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/var/lib/jenkins/jobs/Rudder-2.4-branch/workspace/rudder-web/target/classes/logback.xml]
10:26:21,401 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
10:26:21,528 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
10:26:21,531 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
10:26:21,956 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
10:26:21,957 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [OPSLOG]
10:26:21,958 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
10:26:21,959 |-INFO in ch.qos.logback.core.FileAppender[OPSLOG] - File property is set to [/var/log/rudder/core/rudder-webapp.log]
10:26:21,969 |-ERROR in ch.qos.logback.core.FileAppender[OPSLOG] - Failed to create parent directories for [/var/log/rudder/core/rudder-webapp.log]
10:26:21,969 |-ERROR in ch.qos.logback.core.FileAppender[OPSLOG] - openFile(/var/log/rudder/core/rudder-webapp.log,true) call failed. java.io.FileNotFoundException: /var/log/rudder/core/rudder-webapp.log (No such file or directory)
at java.io.FileNotFoundException: /var/log/rudder/core/rudder-webapp.log (No such file or directory)

Actions

Also available in: Atom PDF