MCPcopy
hub / github.com/cherrypy/cherrypy / flush

Method flush

cherrypy/_cplogging.py:419–426  ·  view source on GitHub ↗

Flushes the stream.

(self)

Source from the content-addressed store, hash-verified

417 "A handler class which writes logging records to environ['wsgi.errors']."
418
419 def flush(self):
420 """Flushes the stream."""
421 try:
422 stream = cherrypy.serving.request.wsgi_environ.get('wsgi.errors')
423 except (AttributeError, KeyError):
424 pass
425 else:
426 stream.flush()
427
428 def emit(self, record):
429 """Emit a record."""

Callers 5

emitMethod · 0.95
send_responseFunction · 0.80
compressFunction · 0.80
_handleLogErrorMethod · 0.80
daemonizeMethod · 0.80

Calls 1

getMethod · 0.45

Tested by 1

_handleLogErrorMethod · 0.64