diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2017-01-23 17:29:43 +0100 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2017-01-23 17:32:09 +0100 |
commit | da660c752d1c177934a01e28c68368879523b74d (patch) | |
tree | 60869e91c14032861ad364a92352b58945ef3c75 /src/dhcpv4.c | |
parent | 048558077d1bcd4c4e5a7f45b020ae3a879965e4 (diff) |
treewide: rework prio of syslog messages
Rework prio of syslog messages allowing to filter out the relevant messages
by setting the correct log level
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'src/dhcpv4.c')
-rw-r--r-- | src/dhcpv4.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dhcpv4.c b/src/dhcpv4.c index 3fca886..5ef99b1 100644 --- a/src/dhcpv4.c +++ b/src/dhcpv4.c @@ -540,7 +540,7 @@ static bool dhcpv4_assign(struct interface *iface, if (start <= raddr && raddr <= end && dhcpv4_test(iface, raddr)) { assign->addr = raddr; list_add(&assign->head, &iface->dhcpv4_assignments); - syslog(LOG_DEBUG, "assigning the IP the client asked for: %u.%u.%u.%u", + syslog(LOG_INFO, "assigning the IP the client asked for: %u.%u.%u.%u", (assign->addr & 0xff000000) >> 24, (assign->addr & 0x00ff0000) >> 16, (assign->addr & 0x0000ff00) >> 8, @@ -563,7 +563,7 @@ static bool dhcpv4_assign(struct interface *iface, if (list_empty(&iface->dhcpv4_assignments)) { assign->addr = try; list_add(&assign->head, &iface->dhcpv4_assignments); - syslog(LOG_DEBUG, "assigning mapped IP (empty list): %u.%u.%u.%u", + syslog(LOG_INFO, "assigning mapped IP (empty list): %u.%u.%u.%u", (assign->addr & 0xff000000) >> 24, (assign->addr & 0x00ff0000) >> 16, (assign->addr & 0x0000ff00) >> 8, @@ -586,7 +586,7 @@ static bool dhcpv4_assign(struct interface *iface, try = (((try - start) + 1) % count) + start; } - syslog(LOG_DEBUG, "can't assign any IP address -> address space is full"); + syslog(LOG_WARNING, "can't assign any IP address -> address space is full"); return false; } |