MCPcopy Index your code
hub / github.com/alievk/avatarify-python / Logger

Class Logger

afy/utils.py:37–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36
37class Logger():
38 def __init__(self, filename, verbose=True):
39 self.tee = Tee(filename)
40 self.verbose = verbose
41
42 def __call__(self, *args, important=False, **kwargs):
43 if not self.verbose and not important:
44 return
45
46 self.tee(*args, **kwargs)
47
48
49class Once():

Callers 6

__init__Method · 0.90
send_workerMethod · 0.90
recv_workerMethod · 0.90
recv_workerMethod · 0.90
predictor_workerMethod · 0.90
send_workerMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected