my $msglevel = shift;
my $level = $loglevels{lc($ENV{MSVA_LOG_LEVEL})};
- $level = $loglevels{info} if (! defined $level);
+ $level = $loglevels{error} if (! defined $level);
if ($loglevels{lc($msglevel)} <= $level) {
printf STDERR @_;
sub get_log_level {
my $level = $loglevels{lc($ENV{MSVA_LOG_LEVEL})};
- $level = $loglevels{info} if (! defined $level);
+ $level = $loglevels{error} if (! defined $level);
return $level;
}
exec(@args) or exit 111;
}
}
+ } else {
+ printf("MONKEYSPHERE_VALIDATION_AGENT_SOCKET=http://localhost:%d;\nexport MONKEYSPHERE_VALIDATION_AGENT_SOCKET;\n", $self->port);
+ # FIXME: consider daemonizing here to behave more like
+ # ssh-agent. maybe avoid backgrounding by setting
+ # MSVA_NO_BACKGROUND.
};
}
my $server = MSVA->new();
$server->run(host=>'localhost',
log_level=>MSVA::get_log_level(),
- user => $>, # explicitly choose regular user (avoids a warning)
+ user => $>, # explicitly choose regular user and group (avoids spew)
+ group => $),
msva=>$server);
__END__
msva-perl logs messages about its operation to stderr. MSVA_LOG_LEVEL
controls its verbosity, and should be one of (in increasing
verbosity): silent, quiet, fatal, error, info, verbose, debug, debug1,
-debug2, debug3. Default is 'info'.
+debug2, debug3. Default is 'error'.
=item MSVA_ALLOWED_USERS