BIND 10 #1008: missing initLogger() should be caught more explicitly
BIND 10 Development
do-not-reply at isc.org
Sat Jun 11 17:14:37 UTC 2011
#1008: missing initLogger() should be caught more explicitly
-------------------------------------+-------------------------------------
Reporter: | Owner:
jinmei | Status: new
Type: | Milestone: Next-Sprint-
defect | Proposed
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 |
-------------------------------------+-------------------------------------
Comment (by vorner):
No, I don't mean the static initialization fiasco. I mean this:
{{{#!c++
class X {
public:
X() {
logger.info(NEW_X);
}
};
X x;
int main(int, const char*) {
initLogger();
}
}}}
If we add the exception you request, this will crash. I'd like this code
to run (not necessarily log before the initLogger()), because it might
turn out that we can have some logging buried deep down in some functions
and it would be hell to pass around „yes, you can log already“ or make
sure nothing is really called before the initLogger().
--
Ticket URL: <http://bind10.isc.org/ticket/1008#comment:3>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list