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 2017/11/23 13:15:26 UTC

[GitHub] csantanapr commented on a change in pull request #2990: Change log level dynamically

csantanapr commented on a change in pull request #2990: Change log level dynamically
URL: https://github.com/apache/incubator-openwhisk/pull/2990#discussion_r152797705
 
 

 ##########
 File path: common/scala/src/main/scala/whisk/common/Logging.scala
 ##########
 @@ -37,7 +37,11 @@ trait Logging {
    * @param message Message to write to the log
    */
   def debug(from: AnyRef, message: String)(implicit id: TransactionId = TransactionId.unknown) = {
-    emit(DebugLevel, id, from, message)
+    if (id.meta.extraLogging) {
+      emit(InfoLevel, id, from, message)
 
 Review comment:
   Are these reverse? 
   When extraLogging is True do DebugLevel, when False to InfoLevel

----------------------------------------------------------------
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