Skip to content

Commit

Permalink
systemd does not support the same log level strings as bosh-dns
Browse files Browse the repository at this point in the history
Use a mapping so systemd does not throw an error
  • Loading branch information
jpalermo committed Oct 1, 2024
1 parent dd49f40 commit 81dfa06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jobs/bosh-dns/templates/bosh_dns_ctl.erb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function create_network_interface() {
ip addr add <%= p('address') %>/32 dev bosh-dns
ip link set bosh-dns up
resolvectl dns bosh-dns <%= p('address') %>
resolvectl log-level <%= p('log_level')%>
resolvectl log-level <%= {'DEBUG' => 'debug', 'INFO' => 'info', 'WARN' => 'warning', 'ERROR' => 'err', 'NONE' => 'emerg'}[p('log_level')] %>
fi
}

Expand Down

0 comments on commit 81dfa06

Please sign in to comment.