Skip to content

Commit 33c1fda

Browse files
mtillbergsteveschnepp
authored andcommitted
uw: avoid undef warning in DEBUG
1 parent 772c3b9 commit 33c1fda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Munin/Master/UpdateWorker.pm

+2-2
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ sub _db_state_update {
506506
WHERE ds.name = ?");
507507
$sth_ds->execute($node_id, $plugin, $field);
508508
my ($ds_id) = $sth_ds->fetchrow_array();
509-
DEBUG "_db_state_update.ds_id:$ds_id";
509+
DEBUG "_db_state_update.ds_id:" . ($ds_id || 'undef');
510510
WARN "ds_id($plugin, $field, $when, $value) is NULL, SELECT ds.id FROM ds
511511
JOIN service s ON ds.service_id = s.id AND s.node_id = '$node_id' AND s.name = '$plugin'
512512
WHERE ds.name = '$field'" unless $ds_id;
@@ -763,7 +763,7 @@ sub uw_handle_fetch {
763763

764764
# Update all data-driven components: State, RRD, Graphite
765765
my $ds_id = $self->_db_state_update($plugin, $field, $when, $value);
766-
DEBUG "[DEBUG] ds_id($plugin, $field, $when, $value) = $ds_id";
766+
DEBUG "[DEBUG] ds_id($plugin, $field, $when, $value) = " . ($ds_id || 'undef');
767767

768768
# Missing ds config means undef ds_id, already warned
769769
if (!$ds_id) {

0 commit comments

Comments
 (0)