s/LOG_WARN/LOG_WARNING/
This commit is contained in:
parent
923b7de3c6
commit
756da7bc51
|
@ -70,7 +70,7 @@ class ApiOauthAccessTokenAction extends ApiOauthAction
|
||||||
$atok = $server->fetch_access_token($req);
|
$atok = $server->fetch_access_token($req);
|
||||||
|
|
||||||
} catch (OAuthException $e) {
|
} catch (OAuthException $e) {
|
||||||
common_log(LOG_WARN, 'API OAuthException - ' . $e->getMessage());
|
common_log(LOG_WARNING, 'API OAuthException - ' . $e->getMessage());
|
||||||
common_debug(var_export($req, true));
|
common_debug(var_export($req, true));
|
||||||
$this->outputError($e->getMessage());
|
$this->outputError($e->getMessage());
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -89,7 +89,7 @@ class ApiOauthRequestTokenAction extends ApiOauthAction
|
||||||
$token = $server->fetch_request_token($req);
|
$token = $server->fetch_request_token($req);
|
||||||
print $token;
|
print $token;
|
||||||
} catch (OAuthException $e) {
|
} catch (OAuthException $e) {
|
||||||
common_log(LOG_WARN, 'API OAuthException - ' . $e->getMessage());
|
common_log(LOG_WARNING, 'API OAuthException - ' . $e->getMessage());
|
||||||
header('HTTP/1.1 401 Unauthorized');
|
header('HTTP/1.1 401 Unauthorized');
|
||||||
header('Content-Type: text/html; charset=utf-8');
|
header('Content-Type: text/html; charset=utf-8');
|
||||||
print $e->getMessage() . "\n";
|
print $e->getMessage() . "\n";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user