Permalink
Browse files

Subject: Hook up --quiet for a few places it was overlooked

From: Jeff Schroeder <jeffschroeder@computer.org>

Trac: Refs #106

Harmless patch to make --quiet truly quiet.

Signed-off-by: Jeff Schroeder <jeffschroeder@computer.org>
Signed-off-by: Rafi Khardalian
  • Loading branch information...
1 parent af91264 commit 6c36f0c24e4167f691f0717a327f8f3f9c49f6a5 rkhardalian committed Nov 16, 2009
Showing with 8 additions and 2 deletions.
  1. +8 −2 spine-mgmt
View
@@ -420,7 +420,10 @@ unless(defined($quiet))
}
if ( ${%{$registry->get_options()}->{dryrun}} ) {
- print "spine-mgmt: running in dryrun mode\n";
+ unless(defined($quiet))
+ {
+ print "spine-mgmt: running in dryrun mode\n";
+ }
syslog("info", "running in dryrun mode");
}
@@ -519,7 +522,10 @@ $source->clean();
if ($SAVE_STATE)
{
# Store our config object to disk.
- print STDERR "Saving state...\n";
+ unless(defined($quiet))
+ {
+ print STDERR "Saving state...\n";
+ }
unless ($state->store())
{
$c->error('failed to write session object [' . $state->error . ']',

0 comments on commit 6c36f0c

Please sign in to comment.