summaryrefslogtreecommitdiffstats
path: root/lib/private/backgroundjob
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-01-14 09:49:40 +0100
committerMorris Jobke <hey@morrisjobke.de>2016-01-14 09:49:40 +0100
commit64c8427d813445aceb019c08a417633ace17d366 (patch)
tree06eed05ef803e7cc6f897bad8bce9a17b8a581bb /lib/private/backgroundjob
parent205fbcbfa3cf221fad23cfd3379a412aba0dd314 (diff)
downloadnextcloud-server-64c8427d813445aceb019c08a417633ace17d366.tar.gz
nextcloud-server-64c8427d813445aceb019c08a417633ace17d366.zip
Improved error message for failing background job
Diffstat (limited to 'lib/private/backgroundjob')
-rw-r--r--lib/private/backgroundjob/job.php2
1 files changed, 1 insertions, 1 deletions
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());
}
}
}