Skip to content

Commit

Permalink
Merge pull request #185 from podio-community/177-fix-non-cli-debug
Browse files Browse the repository at this point in the history
fix: debug output in non-cli setting
  • Loading branch information
bajarang-agarwal committed Mar 12, 2020
2 parents 8ee268a + 959d233 commit 8ad35a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
5.1.0 / DRAFT
==================
*
* Bugfix: Assure Podio::set_debug(true) performs debug ouput (with Kint) in non-cli setting.

5.0.0 / 2020-03-10
==================
Expand Down
2 changes: 1 addition & 1 deletion lib/Podio.php
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ public static function log_request($method, $url, $encoded_attributes, $response
elseif (self::$debug === 'stdout' && php_sapi_name() === 'cli') {
print $text;
}
elseif (self::$debug === 'stdout' && php_sapi_name() === 'cli') {
elseif (self::$debug === 'stdout' && php_sapi_name() !== 'cli') {
Kint::dump("{$method} {$url}", $encoded_attributes, $response, $curl_info);
}

Expand Down

0 comments on commit 8ad35a7

Please sign in to comment.