Skip to content

Commit

Permalink
interfaces: print ignored reason regardless of debug state
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed May 11, 2023
1 parent 2db028d commit 26449b4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/etc/inc/interfaces.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2763,7 +2763,6 @@ function interface_dhcpv6_prepare($interface, $wancfg, $cleanup = false)
$wanif = get_real_interface($interface, 'inet6');
$id = interface_dhcpv6_id($interface);
$syscfg = config_read_array('system');
$dhcp6_debug = $syscfg['dhcp6_debug'] ?? '';

if (!empty($wancfg['adv_dhcp6_config_file_override'])) {
$dhcp6cfile = $wancfg['adv_dhcp6_config_file_override_path'];
Expand Down Expand Up @@ -2820,9 +2819,7 @@ EXIT|RELEASE)
/usr/local/sbin/configctl -d interface newipv6 {$wanif}
;;
*)
if [ -n "{$dhcp6_debug}" ]; then
/usr/bin/logger -t dhcp6c "dhcp6c \$REASON on {$wanif}"
fi
/usr/bin/logger -t dhcp6c "dhcp6c \$REASON on {$wanif} (ignored)"
;;
esac
Expand Down

0 comments on commit 26449b4

Please sign in to comment.