Skip to content

As a user, I can enable DEBUG logging level for individual tasks #7214

@dralley

Description

@dralley

Is your feature request related to a problem? Please describe.

Debug logging is difficult to enable in many contexts (you need direct admin access to the box, you need to restart services), and result in overly excessive logging for many debugging purposes. It should be possible to enable debug logging for individual tasks similarly to how profiling can be done for individual tasks using the X-TASK-DIAGNOSTICS header.

Describe the solution you'd like

Instead of turning on log level DEBUG for the entire pulp instance, including all workers and the content service, it would be better if a user could send a header with their request to the API which would enable DEBUG level logging for that individual task. That way, users can avoid touching settings.py, and avoid causing unnecessarily voluminous logging for a specific debugging situation.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions