mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-29 02:11:12 -06:00
40 lines
748 B
PHP
40 lines
748 B
PHP
<?php
|
|
declare(strict_types = 1);
|
|
|
|
namespace FireflyIII\Providers;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Log;
|
|
|
|
/**
|
|
* Class AppServiceProvider
|
|
*
|
|
* @package FireflyIII\Providers
|
|
*/
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Bootstrap any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Register any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
// make sure the logger doesn't log everything when it doesn't need to.
|
|
$monolog = Log::getMonolog();
|
|
foreach ($monolog->getHandlers() as $handler) {
|
|
$handler->setLevel(config('app.log-level'));
|
|
}
|
|
}
|
|
}
|