Răsfoiți Sursa

HUE-8128 [backend] Force debug logging in server logs does not get all debug

Ying Chen 7 ani în urmă
părinte
comite
df26866
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      desktop/core/src/desktop/lib/rest/resource.py

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

@@ -108,6 +108,7 @@ class Resource(object):
           smart_unicode(resp.content[:log_length or None], errors='replace'),
           log_length and len(resp.content) > log_length and "..." or ""
       )
+      self._client.logger.disabled = 0
       log_if_slow_call(duration=duration, message=message, logger=self._client.logger)
 
     return resp