summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Integration/Jabber.php1
-rw-r--r--app/ServiceProvider/LoggingProvider.php6
2 files changed, 6 insertions, 1 deletions
diff --git a/app/Integration/Jabber.php b/app/Integration/Jabber.php
index c956cc47..a1191662 100644
--- a/app/Integration/Jabber.php
+++ b/app/Integration/Jabber.php
@@ -106,6 +106,7 @@ class Jabber extends \Core\Base
$options->setUsername($params['username']);
$options->setPassword($params['password']);
$options->setTo($params['domain']);
+ $options->setLogger($this->container['logger']);
$client = new Client($options);
diff --git a/app/ServiceProvider/LoggingProvider.php b/app/ServiceProvider/LoggingProvider.php
index 76263da3..dd79d654 100644
--- a/app/ServiceProvider/LoggingProvider.php
+++ b/app/ServiceProvider/LoggingProvider.php
@@ -2,6 +2,7 @@
namespace ServiceProvider;
+use Psr\Log\LogLevel;
use Pimple\Container;
use Pimple\ServiceProviderInterface;
use SimpleLogger\Logger;
@@ -12,8 +13,11 @@ class LoggingProvider implements ServiceProviderInterface
{
public function register(Container $container)
{
+ $syslog = new Syslog('kanboard');
+ $syslog->setLevel(LogLevel::ERROR);
+
$logger = new Logger;
- $logger->setLogger(new Syslog('kanboard'));
+ $logger->setLogger($syslog);
if (DEBUG) {
$logger->setLogger(new File(DEBUG_FILE));