You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2019/01/05 23:10:45 UTC

[GitHub] rabbah commented on a change in pull request #4164: Add warn log when too many requests happened

rabbah commented on a change in pull request #4164: Add warn log when too many requests happened
URL: https://github.com/apache/incubator-openwhisk/pull/4164#discussion_r241290498
 
 

 ##########
 File path: core/controller/src/main/scala/org/apache/openwhisk/core/controller/AuthorizedRouteDispatcher.scala
 ##########
 @@ -86,7 +89,11 @@ trait BasicAuthorizedRouteProvider extends Directives {
               case NotFound =>
                 handleEntitlementFailure(
                   RejectRequest(NotFound, Some(ErrorResponse(Messages.resourceDoesntExist(resource.fqname), transid))))
-              case _ => handleEntitlementFailure(t)
+              case code =>
+                if (code == TooManyRequests) {
+                  logger.warn(this, s"${resource.id} invoked failed: ${t}")
+                }
 
 Review comment:
   I thought that there is an debug message in the throttler. Maybe we lost that message but does it make sense to log there instead of here? Checking...

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services