Don't add stuff to our internal log buffer if noapi is on.
This commit is contained in:
parent
11896d2118
commit
e9de11f0e3
|
@ -206,6 +206,7 @@ class Pathod(tcp.TCPServer):
|
|||
h.finish()
|
||||
|
||||
def add_log(self, d):
|
||||
if not self.noapi:
|
||||
lock = threading.Lock()
|
||||
with lock:
|
||||
d["id"] = self.logid
|
||||
|
|
Loading…
Reference in New Issue