MCPcopy Create free account
hub / github.com/django/code.djangoproject.com / setup_log

Method setup_log

traccheck.py:94–101  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

92 super().__init__(cmdoptions.trac_env, *args, **kwargs)
93
94 def setup_log(self):
95 if self._cmdoptions.trac_log_level:
96 self.config.set("logging", "log_type", "stderr")
97 self.config.set("logging", "log_level", self._cmdoptions.trac_log_level)
98 super().setup_log()
99 else:
100 # Let the mock object capture (and discard) all method calls.
101 self.log = Mock()
102
103 # The rest of the methods here are custom and not available on Trac's Environment.
104

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected