Skip to content

Commit a724e54

Browse files
committed
refactor: remove some logging noise
1 parent c976911 commit a724e54

3 files changed

Lines changed: 4 additions & 9 deletions

File tree

src/Application/CreatesLaravelStorageDirectoriesTrait.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
namespace Ymir\Runtime\Application;
1515

1616
use Ymir\Runtime\Exception\ApplicationInitializationException;
17-
use Ymir\Runtime\Logger;
1817

1918
/**
2019
* Creates Laravel storage directories.
@@ -24,23 +23,19 @@ trait CreatesLaravelStorageDirectoriesTrait
2423
/**
2524
* Create the necessary Laravel storage directories.
2625
*/
27-
private function createStorageDirectories(Logger $logger): void
26+
private function createStorageDirectories(): void
2827
{
29-
$logger->debug('Creating Laravel storage directories');
30-
3128
collect(['/bootstrap/cache', '/framework/cache', '/framework/views'])
3229
->map(function (string $path): string {
3330
return '/tmp/storage'.$path;
3431
})
3532
->filter(function (string $directory): bool {
3633
return !is_dir($directory);
3734
})
38-
->each(function (string $directory) use ($logger): void {
35+
->each(function (string $directory): void {
3936
if (!mkdir($directory, 0755, true) && !is_dir($directory)) {
4037
throw new ApplicationInitializationException(sprintf('Failed to create "%s" directory', $directory));
4138
}
42-
43-
$logger->debug(sprintf('"%s" directory created', $directory));
4439
});
4540
}
4641
}

src/Application/LaravelApplication.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function initialize(): void
6262
{
6363
$logger = $this->context->getLogger();
6464

65-
$this->createStorageDirectories($logger);
65+
$this->createStorageDirectories();
6666

6767
$logger->debug('Creating Laravel cache');
6868

src/Application/RadicleApplication.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function initialize(): void
5151
{
5252
$logger = $this->context->getLogger();
5353

54-
$this->createStorageDirectories($logger);
54+
$this->createStorageDirectories();
5555

5656
$logger->debug('Creating Acorn cache');
5757

0 commit comments

Comments
 (0)