Browse Source

check_junos: Include query arguments in debug output as well.

Sebastian Harl 13 years ago
parent
commit
46f1cbe20f
1 changed files with 3 additions and 1 deletions
  1. 3 1
      check_junos.pl

+ 3 - 1
check_junos.pl

@@ -291,7 +291,9 @@ sub send_query
 	my $res;
 	my $err;
 
-	verbose(3, "Sending query '$query' to router.");
+	verbose(3, "Sending query '$query' "
+		. join(", ", map { "$_ => $queryargs->{$_}" } keys %$queryargs)
+		. " to router.");
 
 	if (ref $queryargs) {
 		$res = $device->$query(%$queryargs);