diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-10-09 15:10:37 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-10-09 15:10:37 +0400 |
commit | 8a1765335d8dc5a30c092a160d727ca42806ecab (patch) | |
tree | 0cfe7e24f56cdd9789992265a105e215613cf33e /core | |
parent | 3f8c6975783fc115765ef241db8d9ba48a8679ac (diff) |
Small tweak to tracker logging
Diffstat (limited to 'core')
-rw-r--r-- | core/Tracker/Request.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Tracker/Request.php b/core/Tracker/Request.php index a31001b66a..00c55a15a7 100644 --- a/core/Tracker/Request.php +++ b/core/Tracker/Request.php @@ -346,8 +346,8 @@ class Request $timeFromNow = $this->timestamp - $cdt; $isTimestampRecent = $timeFromNow < self::CUSTOM_TIMESTAMP_DOES_NOT_REQUIRE_TOKENAUTH_WHEN_NEWER_THAN; if (!$isTimestampRecent) { - Common::printDebug(sprintf("Custom timestamp is %s seconds old, requires &token_auth...", $timeFromNow)); if(!$this->isAuthenticated()) { + Common::printDebug(sprintf("Custom timestamp is %s seconds old, requires &token_auth...", $timeFromNow)); Common::printDebug("WARN: Tracker API 'cdt' was used with invalid token_auth"); return false; } @@ -646,7 +646,7 @@ class Request } if(!$this->isAuthenticated()) { - Common::printDebug("WARN: Tracker API 'cdt' was used with invalid token_auth"); + Common::printDebug("WARN: Tracker API 'cip' was used with invalid token_auth"); return IP::getIpFromHeader(); } return $cip; |