mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Valery Kharseko
yesterday 504a43fc479d884085df9895900608dc5b0aca6f
opendj-server-legacy/src/main/java/org/opends/server/loggers/JDKLogging.java
@@ -12,6 +12,7 @@
 * information: "Portions Copyright [year] [name of copyright owner]".
 *
 * Copyright 2014-2016 ForgeRock AS.
 * Portions Copyright 2026 3A Systems, LLC.
 */
package org.opends.server.loggers;
@@ -112,14 +113,16 @@
    @Override
    public void publish(LogRecord record)
    {
      if (getFormatter() == null)
      // These calls resolve to Handler's own formatter, not to the enclosing
      // JDKLogging.getFormatter(); qualify them so that is unambiguous.
      if (super.getFormatter() == null)
      {
        setFormatter(new SimpleFormatter());
        super.setFormatter(new SimpleFormatter());
      }
      try
      {
        String message = getFormatter().format(record);
        String message = super.getFormatter().format(record);
        if (record.getLevel().intValue() >= Level.WARNING.intValue())
        {
          err.write(message.getBytes());