Skip to content
Snippets Groups Projects
Commit 21bd9e2e authored by Daniel Salzman's avatar Daniel Salzman
Browse files

Merge branch '484-knot-2-3-2-zone-name-not-fully-qualified-in-log' into 'master'

Fixing #484

See merge request !610
parents 53e371a1 e6f5e1c2
No related branches found
No related tags found
No related merge requests found
......@@ -315,11 +315,7 @@ static void log_msg_text(int level, const char *zone, const char *fmt, va_list a
// Prefix zone name.
size_t zone_len = 0;
if (zone != NULL) {
// Strip terminating dot (unless root zone).
zone_len = strlen(zone);
if (zone_len > 1 && zone[zone_len - 1] == '.') {
zone_len -= 1;
}
int ret = log_msg_add(&write, &capacity, "[%.*s] ", zone_len, zone);
if (ret != KNOT_EOK) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment