Remove 'debug' parameter from new CLI modules. Move log writing to single function. (#740)

This commit is contained in:
Felix Fontein
2024-01-02 21:10:59 +01:00
committed by GitHub
parent 7aa9791ea6
commit 762ce3e1cf
5 changed files with 28 additions and 31 deletions
+2 -6
View File
@@ -260,12 +260,8 @@ class AnsibleDockerClientBase(Client):
def log(self, msg, pretty_print=False):
pass
# if self.debug:
# log_file = open('docker.log', 'a')
# if pretty_print:
# log_file.write(json.dumps(msg, sort_keys=True, indent=4, separators=(',', ': ')))
# log_file.write(u'\n')
# else:
# log_file.write(msg + u'\n')
# from .util import log_debug
# log_debug(msg, pretty_print=pretty_print)
@abc.abstractmethod
def fail(self, msg, **kwargs):