112
|
0 |
0 |
unless (eval {
do {
my $driver = $self->getDriver;
my $log_entry;
if (defined $job) {
$log_entry = 'Helios::LogEntry'->new('log_time', time, 'host', $self->getHostname, 'process_id', $$, 'jobid', $job->getJobid, 'funcid', $job->getFuncid, 'job_class', $jobType, 'priority', $level, 'message', $msg);
}
else {
$log_entry = 'Helios::LogEntry'->new('log_time', time, 'host', $self->getHostname, 'process_id', $$, 'jobid', undef, 'funcid', undef, 'job_class', $jobType, 'priority', $level, 'message', $msg);
};
$driver->insert($log_entry);
1
}
}) |