openwhisk-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markusthoem...@apache.org
Subject [incubator-openwhisk] branch master updated: Disable info level logging for Prometheus Metrics endpoint (#4331)
Date Mon, 11 Mar 2019 11:36:46 GMT
This is an automated email from the ASF dual-hosted git repository.

markusthoemmes pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git


The following commit(s) were added to refs/heads/master by this push:
     new 47c069a  Disable info level logging for Prometheus Metrics endpoint (#4331)
47c069a is described below

commit 47c069a82b7d261865c8d8decd2aea1c948816c0
Author: Chetan Mehrotra <chetanm@apache.org>
AuthorDate: Mon Mar 11 17:06:39 2019 +0530

    Disable info level logging for Prometheus Metrics endpoint (#4331)
---
 .../src/main/scala/org/apache/openwhisk/http/BasicRasService.scala      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/scala/src/main/scala/org/apache/openwhisk/http/BasicRasService.scala b/common/scala/src/main/scala/org/apache/openwhisk/http/BasicRasService.scala
index 7232453..cea06f4 100644
--- a/common/scala/src/main/scala/org/apache/openwhisk/http/BasicRasService.scala
+++ b/common/scala/src/main/scala/org/apache/openwhisk/http/BasicRasService.scala
@@ -29,7 +29,7 @@ trait BasicRasService extends BasicHttpService {
   override def routes(implicit transid: TransactionId) = ping ~ MetricsRoute()
 
   override def loglevelForRoute(route: String): Logging.LogLevel = {
-    if (route == "/ping") {
+    if (route == "/ping" || route == "/metrics") {
       Logging.DebugLevel
     } else {
       super.loglevelForRoute(route)


Mime
View raw message