Skip to content

Commit

Permalink
Added NullLoger by default
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviapa committed Feb 29, 2024
1 parent bfbb3b5 commit 9066629
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,14 @@
namespace Softonic\LaravelProtobufEvents;

use Illuminate\Support\ServiceProvider as LaravelServiceProvider;
use Psr\Log\NullLogger;

class ServiceProvider extends LaravelServiceProvider
{
/**
* @var string
*/
protected string $packageName = 'protobuf-events';

/**
* Bootstrap the application services.
*
*/
public function boot()
{
Expand All @@ -23,11 +20,14 @@ public function boot()
],
'config'
);

if (ExternalEvents::$logger === null) {
ExternalEvents::setLogger(new NullLogger());
}
}

/**
* Register the application services.
*
*/
public function register()
{
Expand Down

0 comments on commit 9066629

Please sign in to comment.