-
Notifications
You must be signed in to change notification settings - Fork 136
Description
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.