Skip to content

Commit 3ac6414

Browse files
committed
Fix log level
1 parent 7d78475 commit 3ac6414

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
CHANGELOG
22
=========
33

4+
### [1.1.1](https://github.com/webeweb/pexels-library/tree/v1.1.1) (2019-08-08)
5+
6+
- Fix log level
7+
48
### [1.1.0](https://github.com/webeweb/pexels-library/tree/v1.1.0) (2019-08-07)
59

610
- Add Logger interface into API provider

src/Provider/AbstractProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ private function callAPI($uri, array $queryData) {
134134
$method = "GET";
135135
$options = 0 < count($queryData) ? ["query" => $queryData] : [];
136136

137-
$this->log(sprintf("Call Pexels API %s %s", $method, $uri), ["config" => $config, "options" => $options]);
137+
$this->logInfo(sprintf("Call Pexels API %s %s", $method, $uri), ["config" => $config, "options" => $options]);
138138

139139
$response = $client->request($method, $uri, $options);
140140

@@ -224,13 +224,13 @@ public function getLogger() {
224224
}
225225

226226
/**
227-
* Log.
227+
* Log an info.
228228
*
229229
* @param string $message The message.
230230
* @param array $context The context.
231231
* @return AbstractProvider Returns this provider.
232232
*/
233-
protected function log($message, array $context) {
233+
protected function logInfo($message, array $context) {
234234
if (null !== $this->getLogger()) {
235235
$this->getLogger()->info($message, $context);
236236
}

0 commit comments

Comments
 (0)