Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-2547

Creating a debug target for a specific method actually traces messages for the whole class

    Details

    • Type: Bug
    • Status: Done
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.0
    • Component/s: core server
    • Labels:
      None

      Description

      I was creating a debug target for a specific method like this:

      opendj/bin/dsconfig --hostname localhost -p 4444 -D "cn=myself" -w password -X -n  --batch <<END_OF_COMMAND_INPUT
        create-debug-target         --publisher-name "File-Based Debug Logger"  --set enabled:true --type generic --target-name org.opends.server.replication.server.changelog.file.Log#purgeUpTo
        set-log-publisher-prop      --publisher-name "File-Based Debug Logger"  --set enabled:true
      END_OF_COMMAND_INPUT
      

      Yet the debug logs showed messages for other methods in the same class:

      [14/Dec/2015:17:25:21 +0100] 0 trace thread={Change number indexer(55)} threadDetail={parentThread=LDAP Request Handler 0 for connection handler Administration Connector 0.0.0.0 port 4444(28) isDaemon=false } method={mustRotate(Log.java:512)} Rotate log /ssddata/git/opendj/opendj-server-legacy/target/package/DJ1/opendj/changelogDb/changenumberindex due to time: time elapsed 279837, rotation interval: 5000
      [14/Dec/2015:17:25:36 +0100] 1 trace thread={Change number indexer(55)} threadDetail={parentThread=LDAP Request Handler 0 for connection handler Administration Connector 0.0.0.0 port 4444(28) isDaemon=false } method={mustRotate(Log.java:512)} Rotate log /ssddata/git/opendj/opendj-server-legacy/target/package/DJ1/opendj/changelogDb/changenumberindex due to time: time elapsed 358040, rotation interval: 5000
      [14/Dec/2015:17:25:49 +0100] 2 trace thread={Change number indexer(55)} threadDetail={parentThread=LDAP Request Handler 0 for connection handler Administration Connector 0.0.0.0 port 4444(28) isDaemon=false } method={append(Log.java:478)} Rotation needed for log file '/ssddata/git/opendj/opendj-server-legacy/target/package/DJ1/opendj/changelogDb/changenumberindex', size of head log file is 33 bytes
      [14/Dec/2015:17:25:52 +0100] 3 trace thread={Changelog DB purger(56)} threadDetail={parentThread=LDAP Request Handler 0 for connection handler Administration Connector 0.0.0.0 port 4444(28) isDaemon=false } method={purgeUpTo(Log.java:747)} About to purge log files older than purgeKey 2: {1=LogFile [logfile=/ssddata/git/opendj/opendj-server-legacy/target/package/DJ1/opendj/changelogDb/changenumberindex/1_1.log, isWriteEnabled=false]}
      

      Note the logs for "mustRotate(Log.java:512)" and "append(Log.java:478)" which should not be there.

        Attachments

          Activity

            People

            • Assignee:
              JnRouvignac Jean-Noël Rouvignac
              Reporter:
              JnRouvignac Jean-Noël Rouvignac
              Dev Assignee:
              Jean-Noël Rouvignac
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: