Project

Profile

Help

Task #2971

closed

enable celery workers to log at levels below WARN

Added by mhrivnak over 7 years ago. Updated over 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Celery workers set their own log level somehow. You can supply one via a celery setting, either on the command line or as an environment variable.

http://docs.celeryproject.org/en/v4.1.0/reference/celery.bin.worker.html#cmdoption-celery-worker-l

It defaults to WARN. I was able to get the workers to log at info by adding "--loglevel=INFO" to the worker unit file. That is probably not the best approach though. It is desirable to have a setting that can enable DEBUG logging across all of Pulp or not.

I think in Pulp 2 there was a mechanism for overriding whatever log level celery set, but I'm not entirely sure. This task is to figure out a reasonable approach for setting the log level across pulp and to make it happen.


Related issues

Is duplicate of Pulp - Issue #2906: Level INFO messages not being logged in worker processes.CLOSED - CURRENTRELEASEbizhangActions

Also available in: Atom PDF