MCPcopy
hub / github.com/django/django / filter

Method filter

django/utils/log.py:196–199  ·  view source on GitHub ↗
(self, record)

Source from the content-addressed store, hash-verified

194 self.callback = callback
195
196 def filter(self, record):
197 if self.callback(record):
198 return 1
199 return 0
200
201
202class RequireDebugFalse(logging.Filter):

Callers 15

test_senseMethod · 0.95
test_passes_on_recordMethod · 0.95
get_list_or_404Function · 0.45
aget_list_or_404Function · 0.45
existsMethod · 0.45
aexistsMethod · 0.45
clear_expiredMethod · 0.45
aclear_expiredMethod · 0.45
get_querysetMethod · 0.45
clean_usernameMethod · 0.45
get_usersMethod · 0.45

Calls 1

callbackMethod · 0.45

Tested by 2

test_senseMethod · 0.76
test_passes_on_recordMethod · 0.76