BIND 10 #1008: missing initLogger() should be caught more explicitly
BIND 10 Development
do-not-reply at isc.org
Thu Jun 16 13:40:52 UTC 2011
#1008: missing initLogger() should be caught more explicitly
-------------------------------------+-------------------------------------
Reporter: | Owner: UnAssigned
jinmei | Status: reviewing
Type: | Milestone:
defect | Sprint-20110628
Priority: major | Resolution:
Component: | Sensitive: 0
logging | Sub-Project: Core
Keywords: | Estimated Difficulty: 0.0
Defect Severity: N/A | Total Hours: 0
Feature Depending on Ticket: |
Add Hours to Ticket: 0 |
Internal?: 0 |
-------------------------------------+-------------------------------------
Changes (by stephen):
* owner: stephen => UnAssigned
* status: assigned => reviewing
Comment:
I did consider Michal's point. Although solutions are possible (e.g. have
the logger store messages in memory if called before initialization,
outputting them through the normal logging system once logging has been
successfully initialized), as Jinmei has said on bind10-dev, we should not
really have a lot of code in static initializers. It therefore didn't seem
worth implementing an elaborate solution for something that might never
happen.
For this reason, the code has been modified to throw an exception if a
logging method is called before logging initialization is done. We can
revisit this if it proves to be a problem.
Change is commit 80dd433545aecf82aa178365dbc6e0650e12907b. It is not
planned to have a !ChangeLog entry for this modification.
--
Ticket URL: <http://bind10.isc.org/ticket/1008#comment:6>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list