Browse Source

HUE-8118 [core] The duration of the request is always shown even when instrumentation flag is off

Roohi 7 years ago
parent
commit
df32f3d54a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      desktop/core/src/desktop/log/access.py

+ 1 - 1
desktop/core/src/desktop/log/access.py

@@ -98,7 +98,7 @@ class AccessInfo(dict):
 
 
   def log(self, level, msg=None, start_time=None):
   def log(self, level, msg=None, start_time=None):
     is_instrumentation = desktop.conf.INSTRUMENTATION.get()
     is_instrumentation = desktop.conf.INSTRUMENTATION.get()
-    self['duration'] = ' returned in %dms' % ((time.time() - start_time) * 1000) if start_time is not None and is_instrumentation else ''
+    self['duration'] = ' returned in %dms' % ((time.time() - start_time) * 1000) if start_time is not None else ''
     self['memory'] = ' (mem: %dmb)' % self.memory_usage_resource() if is_instrumentation else ''
     self['memory'] = ' (mem: %dmb)' % self.memory_usage_resource() if is_instrumentation else ''
 
 
     if msg is not None:
     if msg is not None: