Skip to content

[JENKINS-74774] Noisy log messages in active-directory-plugin after JENKINS-42687 #667

@jenkins-infra-bot

Description

@jenkins-infra-bot

Note: Whereas this was mentioned in JENKINS-71170, that issue did not request a change.

The log messages introduced for the resolution of JENKINS-42687 are very noisy.  The comments above the logging calls suggest that these are not failures but they are sent at Level.WARNING and cannot be disabled via a Java option like is done with  `-Dorg.jenkinsci.plugins.scriptsecurity.scripts.ScriptApproval.ADMIN_AUTO_APPROVAL_ENABLED=true`.

I can see two options off the top of my head that would help:

  • downgrade to `LogLevel.FINE` (or lower)
  • enable the logging to be disabled via a Java property (a la `ADMIN_AUTO_APPROVAL_ENABLED`)?   (this might be more useful, if the default behavior is to log these messages - some people might find it useful).

the two log messages are here:

https://github.com/search?q=repo%3Ajenkinsci%2Factive-directory-plugin%20JENKINS-42687&type=code


Originally reported by krodrigu, imported from: Noisy log messages in active-directory-plugin after JENKINS-42687
  • assignee: fbelzunc
  • status: Open
  • priority: Minor
  • component(s): active-directory-plugin
  • label(s): ActiveDirectory, logging
  • resolution: Unresolved
  • votes: 0
  • watchers: 3
  • imported: 2025-12-07
Raw content of original issue

Note: Whereas this was mentioned in JENKINS-71170, that issue did not request a change.

The log messages introduced for the resolution of JENKINS-42687 are very noisy.  The comments above the logging calls suggest that these are not failures but they are sent at Level.WARNING and cannot be disabled via a Java option like is done with  `-Dorg.jenkinsci.plugins.scriptsecurity.scripts.ScriptApproval.ADMIN_AUTO_APPROVAL_ENABLED=true`.

I can see two options off the top of my head that would help:

  • downgrade to `LogLevel.FINE` (or lower)
  • enable the logging to be disabled via a Java property (a la `ADMIN_AUTO_APPROVAL_ENABLED`)?   (this might be more useful, if the default behavior is to log these messages - some people might find it useful).

the two log messages are here:

https://github.com/search?q=repo%3Ajenkinsci%2Factive-directory-plugin%20JENKINS-42687&type=code

environment
Jenkins 2.462.3 (from docker image lts-jdk21)<br/>
Active Directory plugin Version2.37

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions