Skip to content

Commit

Permalink
fixed issues
Browse files Browse the repository at this point in the history
  • Loading branch information
developernaren committed Aug 2, 2019
1 parent 950b4e4 commit aff80ed
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/Providers/CloudWatchServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@ public function getLogger()
*/
public function register()
{
if ($this->app->make('config')->get('logging.channels.cloudwatch.disable')) {
$this->mergeConfigFrom(
__DIR__.'/../../config/logging.php',
'logging.channels'
);

$this->app->singleton('cloudwatch.logger', function () {
return $this->getLogger();
});
}
$this->mergeConfigFrom(
__DIR__ . '/../../config/logging.php',
'logging.channels'
);

if (!$this->app->make('config')->get('logging.channels.cloudwatch.disable')) {
$this->app->singleton('cloudwatch.logger', function () {
return $this->getLogger();
});
}
}

/**
Expand Down

0 comments on commit aff80ed

Please sign in to comment.