Skip to content

Commit 52a5251

Browse files
committed
Change PUT to Append for Log Storage
1 parent 2050cf0 commit 52a5251

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/HttpLogger.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,16 @@ protected function logToChannel(string $channel): void
8484
protected function logToDisk(string $disk): void
8585
{
8686
if (Arr::get($this->config, 'disk_separate_files')) {
87-
Storage::disk($disk)->put(
87+
Storage::disk($disk)->append(
8888
$this->getFileName().'-request'.Str::start($this->fileExt, '.'),
8989
$this->psrMessageStringConverter->toString($this->request, $this->getReplace())
9090
);
91-
Storage::disk($disk)->put(
91+
Storage::disk($disk)->append(
9292
$this->getFileName().'-response'.Str::start($this->fileExt, '.'),
9393
$this->psrMessageStringConverter->toString($this->response, $this->getReplace())
9494
);
9595
} else {
96-
Storage::disk($disk)->put(
96+
Storage::disk($disk)->append(
9797
$this->getFileName().Str::start($this->fileExt, '.'),
9898
$this->getMessage()
9999
);

0 commit comments

Comments
 (0)