Skip to content

Commit

Permalink
test cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
oliwierptak committed Aug 4, 2023
1 parent a475b6f commit d948ec5
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 974 deletions.
13 changes: 12 additions & 1 deletion src/Shared/Logger/Configurator/MonologLevelConfiguratorTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ trait MonologLevelConfiguratorTrait
/**
* The minimum logging level at which this handler will be triggered
*/
protected Level $logLevel;
protected Level $logLevel = Level::Debug;


public function getLogLevel(): Level
{
Expand Down Expand Up @@ -41,4 +42,14 @@ public function hasLogLevel(): bool
{
return isset($this->logLevel);
}

public function getFilePermission(): int
{
return 644;
}

public function useLocking(): bool
{
return false;
}
}
2 changes: 1 addition & 1 deletion tests/stub/Plugin/Stream/FactoryStub.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ class FactoryStub implements PluginFactoryInterface
{
public function create(PluginConfiguratorInterface $configurator): LoggerPluginInterface
{
return new StreamLoggerPluginStub($configurator);
return new HandlerExceptionLoggerPluginStub($configurator);
}
}
Loading

0 comments on commit d948ec5

Please sign in to comment.