BIND 10 #1393: reduce overhead in python logging
BIND 10 Development
do-not-reply at isc.org
Sun Nov 20 19:35:34 UTC 2011
#1393: reduce overhead in python logging
-------------------------------------+-------------------------------------
Reporter: jinmei | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: Next-
Component: logging | Sprint-Proposed
Sensitive: 0 | Keywords:
Sub-Project: Core | Defect Severity: N/A
Estimated Difficulty: 0 | Feature Depending on Ticket:
Total Hours: 0 | Add Hours to Ticket: 0
| Internal?: 0
-------------------------------------+-------------------------------------
See this: https://bind10.isc.org/ticket/1359#comment:11
On a related note, it would be better to pass the original object
to logger rather than passing a string based on the object whenever
possible. Then we can avoid the expensive conversion if the specified
level of logging is disabled.
Example: do this
{{{
isc.dns.Name name('example.com')
logger.debug(VERY_MINOR, SOME_NOISY_LOG, name)
}}}
instead of
{{{
isc.dns.Name name('example.com')
logger.debug(VERY_MINOR, SOME_NOISY_LOG, name.to_text())
}}}
Another related note is that we should generally try to provide __str__()
for Python classes defined in BIND 10.
--
Ticket URL: <http://bind10.isc.org/ticket/1393>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list