Skip to content

Commit

Permalink
Merge pull request #2379 from Nyholm/psr-log
Browse files Browse the repository at this point in the history
Make sure we dont use Psr\Log\LogLevel since we don't require it in mposer
  • Loading branch information
sagikazarmark committed Oct 23, 2019
2 parents 434c013 + ab33dc5 commit 57d54bc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Middleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use GuzzleHttp\Psr7;
use Psr\Http\Message\ResponseInterface;
use Psr\Log\LoggerInterface;
use Psr\Log\LogLevel;

/**
* Functions used to create and wrap handlers with handler middleware.
Expand Down Expand Up @@ -183,7 +182,7 @@ public static function retry(callable $decider, callable $delay = null)
*
* @return callable Returns a function that accepts the next handler.
*/
public static function log(LoggerInterface $logger, MessageFormatter $formatter, $logLevel = LogLevel::INFO)
public static function log(LoggerInterface $logger, MessageFormatter $formatter, $logLevel = 'info' /* \Psr\Log\LogLevel::INFO */)
{
return function (callable $handler) use ($logger, $formatter, $logLevel) {
return function ($request, array $options) use ($handler, $logger, $formatter, $logLevel) {
Expand Down

0 comments on commit 57d54bc

Please sign in to comment.