Skip to content

Commit

Permalink
Subject: Hook up --quiet for a few places it was overlooked
Browse files Browse the repository at this point in the history
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
rkhardalian committed Nov 16, 2009
1 parent af91264 commit 6c36f0c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions spine-mgmt
Expand Up @@ -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");
}

Expand Down Expand Up @@ -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 . ']',
Expand Down

0 comments on commit 6c36f0c

Please sign in to comment.