Przeglądaj źródła

HUE-8985 [core] Debug logging responses missing

cconner 5 lat temu
rodzic
commit
3bca8afb99

+ 4 - 1
desktop/core/src/desktop/lib/rest/resource.py

@@ -234,4 +234,7 @@ def log_if_slow_call(duration, message, logger):
   elif duration >= math.floor(INFO_LEVEL_CALL_DURATION_MS / 1000):
     logger.info('SLOW: %.2f - %s' % (duration, message))
   else:
-    logger.debug(message)
+    #Leave this as logging.debug and not logger.
+    #Otherwise we never get these logging messages even with debug enabled.
+    #Review this in the future to find out why.
+    logging.debug(message)

+ 4 - 1
desktop/core/src/desktop/lib/thrift_util.py

@@ -825,4 +825,7 @@ def log_if_slow_call(duration, message):
   elif duration >= math.floor(INFO_LEVEL_CALL_DURATION_MS / 1000):
     LOG.info('SLOW: %.2f - %s' % (duration, message))
   else:
-    LOG.debug(message)
+    #Leave this as logging.debug and not logger.
+    #Otherwise we never get these logging messages even with debug enabled.
+    #Review this in the future to find out why.
+    logging.debug(message)