Fix send_data() and run_services(). Add --interactive. Print message about starting online logging in start_online_logging() to avoid false-positive. eval send_data() and run_service() to catch spurious errors.

This commit is contained in:
Daniel Nichter
2013-06-11 11:11:11 -07:00
parent d15731c4c3
commit a54f59626f
2 changed files with 75 additions and 33 deletions

View File

@@ -120,6 +120,9 @@ sub start_online_logging {
my $read_timeout = $args{read_timeout} || 3;
return unless $self->online_logging;
$self->info("Starting online logging. No more log entries will be printed here. "
. "Agent logs are accessible through the web interface.");
my $pid = open(my $pipe_write, "|-");