Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoray committed Jan 13, 2025
1 parent a1f0221 commit 75bac9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/GithubIssueHandlerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,12 @@ protected function createStore(array $config): StoreInterface
$time = $this->getDeduplicationTime($config);
$prefix = Arr::get($deduplication, 'prefix', 'github-monolog:');
$connection = Arr::get($deduplication, 'connection', 'default');
$table = Arr::get($deduplication, 'table', 'github_monolog_deduplication');
$path = Arr::get($deduplication, 'path', storage_path('logs/github-monolog-deduplication.log'));

return match ($driver) {
'redis' => new RedisStore(prefix: $prefix, time: $time, connection: $connection),
'database' => new DatabaseStore(time: $time, connection: $connection),
'database' => new DatabaseStore(time: $time, table: $table, connection: $connection),
default => new FileStore(path: $path, time: $time),
};
}
Expand Down

0 comments on commit 75bac9c

Please sign in to comment.