diff options
| author | 2015-01-13 15:00:06 +0100 | |
|---|---|---|
| committer | 2015-01-13 15:00:06 +0100 | |
| commit | f3545208ab29ac646e3f104892aabcabe575411d (patch) | |
| tree | a441926aa55ca764e21316543ba55c5ae7249609 /p/api | |
| parent | e7e7a320d61a03141823ccb47c8587bb2541ba2e (diff) | |
Add log in API
See https://github.com/FreshRSS/FreshRSS/issues/747
Diffstat (limited to 'p/api')
| -rw-r--r-- | p/api/greader.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/p/api/greader.php b/p/api/greader.php index bbde2a867..069fcd5a8 100644 --- a/p/api/greader.php +++ b/p/api/greader.php @@ -152,7 +152,7 @@ function authorizationToUserConf() { if (ctype_alnum($user)) { $conf = get_user_configuration($user); if (is_null($conf)) { - logMe('Invalid configuration API file for user ' . $user); + Minz_Log::warning('Invalid API user ' . $user . ': configuration cannot be found.'); unauthorized(); } $system_conf = Minz_Configuration::get('system'); @@ -180,6 +180,7 @@ function clientLogin($email, $pass) { //http://web.archive.org/web/2013060409104 $conf = get_user_configuration($email); if (is_null($conf)) { + Minz_Log::warning('Invalid API user ' . $email . ': configuration cannot be found.'); unauthorized(); } |
