[bind10-dev] don't use numeric type number in log output
JINMEI Tatuya / 神明達哉
jinmei at isc.org
Wed Aug 24 19:02:39 UTC 2011
At Mon, 22 Aug 2011 10:19:12 -0500 (CDT),
"Jeremy C. Reed" <jreed at isc.org> wrote:
>
>
> 2011-08-15 14:37:23.002 DEBUG [b10-resolver.cache]
> CACHE_LOCALZONE_UPDATE updating local zone element at key
> l.root-servers.net.28
>
> I initially wondered what does that .28 mean? After looking at source
> documentation for genCacheEntryName I see this is the type number. So I
> search and find RFC 1886 so I can know "28". (If you want to know the
> answer, read it :)
>
> Why use numeric representation in the output used by admin?
In this specific case, since we know complete information of the
corresponding RRset, the log message can (and should) be more
intuitive.
In some cases there may be no other reasonable alternatives (e.g. when
we use plain integers for some kind of keys and it's not easy to get
the associated readable information). I personally think it's okay to
print the row values in such cases for debugging purposes. But in
such cases we should describe what these mean in the longer version of
the log description.
---
JINMEI, Tatuya
More information about the bind10-dev
mailing list