Skip to content

Commit

Permalink
clients/upsmon.c: notify(): clarify (when debug-logging) upsmon-centr…
Browse files Browse the repository at this point in the history
…ic messages if upsname==NULL [networkupstools#415, networkupstools#2709]

Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov committed Dec 5, 2024
1 parent 1adcdc4 commit a0b5ccf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/upsmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ static void notify(const char *notice, int flags, const char *ntype,
#endif

upsdebugx(6, "%s: sending notification for [%s]: type %s with flags 0x%04x: %s",
__func__, upsname, ntype, flags, notice);
__func__, upsname ? upsname : "upsmon itself", ntype, flags, notice);

if (flag_isset(flags, NOTIFY_IGNORE)) {
upsdebugx(6, "%s: NOTIFY_IGNORE", __func__);
Expand Down

0 comments on commit a0b5ccf

Please sign in to comment.