Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-6763

EJB CLI still logs too much irrelevant info

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: EJBCA 6.8.0
    • Fix Version/s: EJBCA 6.14.0
    • Component/s: None
    • Labels:
      None
    • Issue discovered during:
      Integration
    • Sprint:
      EJBCA Sprint 13

      Description

      The fix in ECA-5861 was not sufficient since it

      • Only silenced org.ejbca.config instead of both org.cesecore.config.ConfigurationHolder and org.ejbca.config.ConfigurationHolder
      • It turned logging OFF completely instead of increasing the value to WARN which would hide any errors or warnings from the class

      Currently the output in EJBCA 6.12.0 running on Wildfly 12 is (when adding class and log level):

      [org.wildfly.naming] INFO  WildFly Naming version 1.0.7.Final
      [org.wildfly.security] INFO  ELY00001: WildFly Elytron version 1.2.2.Final
      [org.cesecore.config.ConfigurationHolder] INFO  Allow external re-configuration: true
      [org.cesecore.config.ConfigurationHolder] INFO  Added system properties to configuration source (java -Dfoo.prop=bar).
      [org.cesecore.config.ConfigurationHolder] INFO  Added file to configuration source: /build/conf/cesecore.properties
      [org.cesecore.config.ConfigurationHolder] INFO  Added file to configuration source: /build/conf/extendedkeyusage.properties
      [org.cesecore.config.ConfigurationHolder] INFO  Added file to configuration source: /build/conf/cache.properties
      [org.cesecore.config.ConfigurationHolder] INFO  Added file to configuration source: /build/conf/database.properties
      [org.cesecore.config.ConfigurationHolder] INFO  Added file to configuration source: /build/conf/databaseprotection.properties
      [org.cesecore.config.ConfigurationHolder] INFO  Added file to configuration source: /build/conf/backup.properties
      [org.cesecore.config.ConfigurationHolder] INFO  Added file to configuration source: /build/conf/va.properties
      [org.cesecore.config.ConfigurationHolder] INFO  Added file to configuration source: /build/conf/ocsp.properties
      [org.cesecore.config.ConfigurationHolder] INFO  Added file to configuration source: /etc/cesecore/conf/cesecore.properties
      [org.cesecore.config.ConfigurationHolder] INFO  Added file to configuration source: /etc/cesecore/conf/extendedkeyusage.properties
      [org.cesecore.config.ConfigurationHolder] INFO  Added file to configuration source: /etc/cesecore/conf/cache.properties
      [org.cesecore.config.ConfigurationHolder] INFO  Added file to configuration source: /etc/cesecore/conf/database.properties
      [org.cesecore.config.ConfigurationHolder] INFO  Added file to configuration source: /etc/cesecore/conf/databaseprotection.properties
      [org.cesecore.config.ConfigurationHolder] INFO  Added file to configuration source: /etc/cesecore/conf/backup.properties
      [org.cesecore.config.ConfigurationHolder] INFO  Added file to configuration source: /etc/cesecore/conf/va.properties
      [org.cesecore.config.ConfigurationHolder] INFO  Added file to configuration source: /etc/cesecore/conf/ocsp.properties
      

      We need something like

      ...
      	<!-- Limit the JBoss EJB remoting output -->
      	<category name="org.xnio" additivity="false">
      		<priority value="WARN"/>
      	</category>
      	<category name="org.jboss" additivity="false">
      		<priority value="ERROR"/>
      	</category>
      	<category name="org.wildfly" additivity="false">
      		<priority value="WARN"/>
      	</category>
      
      	<category name="org.ejbca" additivity="false">
      		<priority value="TRACE"/>
      		<!-- Change this to 'debug-console' for full debug info -->
      		<appender-ref ref="console"/>
      	</category>
      	<category name="org.ejbca.config.ConfigurationHolder" additivity="false">
      		<priority value="WARN"/>
      		<appender-ref ref="console"/>
      	</category>
      	<category name="org.cesecore.config.ConfigurationHolder" additivity="false">
      		<priority value="WARN"/>
      		<appender-ref ref="console"/>
      	</category>
      
      	<root> 
      		<!-- Set basic limit for console -->
      		<priority value="INFO" />
      		<appender-ref ref="console"/>
      	</root> 
      ...
      

      Make sure to enable allow.external-dynamic.configuration=true in both conf/cesecore.properties and conf/ejbca.properties to test this properly.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                johan Johan Eklund
                Reporter:
                johan Johan Eklund
                Verified by:
                Samuel Lidén Borell
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: