Skip to content

Commit 292a1b7

Browse files
authored
Merge pull request #88 from OpenVoxProject/sd-log
sd_notify: Add log message
2 parents 2e65669 + 39f257c commit 292a1b7

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

project.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
[org.openvoxproject/i18n ~i18n-version]]
9696

9797
:eastwood {:ignored-faults {:reflection {puppetlabs.trapperkeeper.logging [{:line 92}]
98-
puppetlabs.trapperkeeper.internal [{:line 174}]
98+
puppetlabs.trapperkeeper.internal [{:line 177}]
9999
puppetlabs.trapperkeeper.testutils.logging true
100100
puppetlabs.trapperkeeper.testutils.logging-test true
101101
puppetlabs.trapperkeeper.services.nrepl.nrepl-service-test true

src/puppetlabs/trapperkeeper/internal.clj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@
6161
"Send a message to systemd NOTIFY_SOCKET if available."
6262
[^String message]
6363
(when-let [^String socket-path systemd-notify-socket]
64+
(log/info (i18n/trs "Sending sd_notify message to NOTIFY_SOCKET {0}: {1}"
65+
(pr-str socket-path)
66+
(pr-str message)))
6467
(let [^AFUNIXSocketAddress addr (socket-addr socket-path)]
6568
(with-open [^AFUNIXDatagramSocket s (AFUNIXDatagramSocket/newInstance)]
6669
(try

0 commit comments

Comments
 (0)