Uploaded image for project: 'JBoss Log Manager'
  1. JBoss Log Manager
  2. LOGMGR-201

SysLogHandler doesn't log null or empty message

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.1.5.Final
    • 2.1.4.Final
    • core
    • None

    Description

      For cases when message is null or empty, SysLogHandler doesn't publish event (there is a correspondent logic in doPublish method)

      I expect even null or empty messages to be sent. Consider the following message logged to CONSOLE handler:

      21:21:27,562 ERROR [ch.mobi.jes.jaxrs.exception.converter.internal.mapper.AbstractThrowableMapper] (default task-1) null: java.lang.IllegalArgumentException
      	at java.util.Optional.orElseThrow(Optional.java:290)
      	at ch.mobi.apsbau.pdfservice.entity.guarantee.GuaranteeType.resolve(GuaranteeType.java:36)
      	at ch.mobi.apsbau.pdfservice.mapper.guarantee.GuaranteeMapper.toGuaranteeType(GuaranteeMapper.java:43)
      	at ch.mobi.apsbau.pdfservice.mapper.guarantee.GuaranteeMapperImpl.toDraftDtoInternal(GuaranteeMapperImpl.java:49)
      	at ch.mobi.apsbau.pdfservice.mapper.guarantee.GuaranteeMapper.toDraft(GuaranteeMapper.java:28)
      	at ch.mobi.apsbau.pdfservice.boundary.guarantee.GuaranteeResourceImpl.generateDraft(GuaranteeResourceImpl.java:35)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      

      As you can see from example above, the message is null and as a result the entire stacktrace is skipped and not published

      Attachments

        Issue Links

          Activity

            People

              jperkins-rhn James Perkins
              vbaidak Vladyslav Baidak (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: