From 64c8427d813445aceb019c08a417633ace17d366 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 14 Jan 2016 09:49:40 +0100 Subject: Improved error message for failing background job --- lib/private/backgroundjob/job.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/backgroundjob') diff --git a/lib/private/backgroundjob/job.php b/lib/private/backgroundjob/job.php index 677b37e9297..4c4da94d4fd 100644 --- a/lib/private/backgroundjob/job.php +++ b/lib/private/backgroundjob/job.php @@ -52,7 +52,7 @@ abstract class Job implements IJob { $this->run($this->argument); } catch (\Exception $e) { if ($logger) { - $logger->error('Error while running background job: ' . $e->getMessage()); + $logger->error('Error while running background job (class: ' . get_class($this) . ', arguments: ' . print_r($this->argument, true) . '): ' . $e->getMessage()); } } } -- cgit v1.2.3