BIND 10 #2422: log4cplus threading issues: not logging at all from a new thread

BIND 10 Development do-not-reply at isc.org
Thu Nov 1 22:49:38 UTC 2012


#2422: log4cplus threading issues: not logging at all from a new thread
-------------------------------------+-------------------------------------
                   Reporter:  jelte  |                 Owner:  UnAssigned
                       Type:         |                Status:  closed
  defect                             |             Milestone:
                   Priority:         |  Sprint-20121106
  medium                             |            Resolution:  wontfix
                  Component:         |             Sensitive:  0
  logging                            |           Sub-Project:  DNS
                   Keywords:         |  Estimated Difficulty:  0
            Defect Severity:  N/A    |           Total Hours:  0
Feature Depending on Ticket:         |
        Add Hours to Ticket:  4      |
                  Internal?:  0      |
-------------------------------------+-------------------------------------

Comment (by jinmei):

 For the record: from a deeper look, this is probably not a thread
 related issue, but about C++ template handling of the compiler.

 In fact, if I add a log message to
 `DataSrcClientsBuilder::doLoadZone()` (which is run on the main
 thread), it wasn't logged either.  On the other hand, if I
 extracted this
 {{{#!cpp
         LOG_DEBUG(auth_logger, DBG_AUTH_OPS,
                   AUTH_DATASRC_CLIENTS_BUILDER_LOAD_ZONE)
             .arg(origin).arg(rrclass);
 }}}
 from `DataSrcClientsBuilderBase::doLoadZone()` (which is templated)
 into a non-templated function and had doLoadZone() call it, it was
 logged.

 Maybe the lesson here is that it's safer to try not to log things from
 a templated function/method.

-- 
Ticket URL: <http://bind10.isc.org/ticket/2422#comment:4>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list