MCPcopy
hub / github.com/celery/celery / bugreport

Function bugreport

celery/app/utils.py:346–375  ·  view source on GitHub ↗

Return a string containing information useful in bug-reports.

(app)

Source from the content-addressed store, hash-verified

344
345
346def bugreport(app):
347 """Return a string containing information useful in bug-reports."""
348 import billiard
349 import kombu
350
351 import celery
352
353 try:
354 conn = app.connection()
355 driver_v = '{}:{}'.format(conn.transport.driver_name,
356 conn.transport.driver_version())
357 transport = conn.transport_cls
358 except Exception: # pylint: disable=broad-except
359 transport = driver_v = ''
360
361 return BUGREPORT_INFO.format(
362 system=_platform.system(),
363 arch=', '.join(x for x in _platform.architecture() if x),
364 kernel_version=_platform.release(),
365 py_i=pyimplementation(),
366 celery_v=celery.VERSION_BANNER,
367 kombu_v=kombu.__version__,
368 billiard_v=billiard.__version__,
369 py_v=_platform.python_version(),
370 driver_v=driver_v,
371 transport=transport,
372 results=maybe_sanitize_url(app.conf.result_backend or 'disabled'),
373 human_settings=app.conf.humanize(),
374 loader=qualname(app.loader.__class__),
375 )
376
377
378def find_app(app, symbol_by_name=symbol_by_name, imp=import_from_cwd):

Callers 2

bugreportMethod · 0.70

Calls 7

pyimplementationFunction · 0.90
qualnameFunction · 0.90
releaseMethod · 0.80
connectionMethod · 0.45
formatMethod · 0.45
joinMethod · 0.45
humanizeMethod · 0.45

Tested by 1