diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-01-14 10:38:53 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-01-14 10:40:23 +0100 |
commit | 86f08f59d6318a45a20b74e4b2b449ddc6882419 (patch) | |
tree | 2ea3cf84cdc6596110144a14976243839926b2e6 /lib/private/backgroundjob | |
parent | 64c8427d813445aceb019c08a417633ace17d366 (diff) | |
download | nextcloud-server-86f08f59d6318a45a20b74e4b2b449ddc6882419.tar.gz nextcloud-server-86f08f59d6318a45a20b74e4b2b449ddc6882419.zip |
use logException() to properly log the exception
Diffstat (limited to 'lib/private/backgroundjob')
-rw-r--r-- | lib/private/backgroundjob/job.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/backgroundjob/job.php b/lib/private/backgroundjob/job.php index 4c4da94d4fd..d666cfe085e 100644 --- a/lib/private/backgroundjob/job.php +++ b/lib/private/backgroundjob/job.php @@ -52,7 +52,8 @@ abstract class Job implements IJob { $this->run($this->argument); } catch (\Exception $e) { if ($logger) { - $logger->error('Error while running background job (class: ' . get_class($this) . ', arguments: ' . print_r($this->argument, true) . '): ' . $e->getMessage()); + $logger->error('Error while running background job (class: ' . get_class($this) . ', arguments: ' . print_r($this->argument, true) . ')'); + $logger->logException($e); } } } |