btrbk: cosmetics: test loglevel before dumping cmd return value (performance)

pull/286/head
Axel Burri 2019-05-22 15:30:29 +02:00
parent 45b487707f
commit f169ab4482
1 changed files with 1 additions and 1 deletions

2
btrbk
View File

@ -782,7 +782,7 @@ sub run_cmd(@)
my $ret = `$cmd`; my $ret = `$cmd`;
if(defined($ret)) { if(defined($ret)) {
chomp($ret); chomp($ret);
TRACE "Command output:\n$ret"; TRACE "Command output:\n$ret" if($loglevel >= 4);
} }
if($? == -1) { if($? == -1) {