Skip to content

Commit a4d9c1a

Browse files
authored
Merge pull request #11 from onlime/macro-registration-warnings
Remove log warnings on Request macro registrations
2 parents b30d6f7 + 87553a6 commit a4d9c1a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/CorrelationIdServiceProvider.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ protected function bootRequestGetUniqueIdMacro(): void
9191

9292
return $this->attributes->get('uuid');
9393
});
94-
} else {
95-
Log::warning('Request::getUniqueId() already exists, skipping macro registration.');
9694
}
9795
}
9896

@@ -107,8 +105,6 @@ protected function bootRequestGetCorrelationIdMacro(): void
107105
// Sanitize the correlation id as a safety precaution
108106
return preg_replace(CorrelationIdServiceProvider::$sanitize, '', $this->header(CorrelationIdServiceProvider::getCorrelationIdHeaderName()));
109107
});
110-
} else {
111-
Log::warning('Request::getCorrelationId() already exists, skipping macro registration.');
112108
}
113109
}
114110

@@ -123,8 +119,6 @@ protected function bootRequestGetClientRequestIdMacro(): void
123119
// Sanitize the correlation id as a safety precaution
124120
return preg_replace(CorrelationIdServiceProvider::$sanitize, '', $this->header(CorrelationIdServiceProvider::getClientRequestIdHeaderName()));
125121
});
126-
} else {
127-
Log::warning('Request::getClientRequestId() already exists, skipping macro registration.');
128122
}
129123
}
130124
}

0 commit comments

Comments
 (0)