Closed
Bug 1175411
Opened 10 years ago
Closed 10 years ago
Releng celery servers are not reporting celery logs to papertrail
Categories
(Infrastructure & Operations :: RelOps: General, task)
Infrastructure & Operations
RelOps: General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: Callek, Assigned: dustin)
References
Details
https://papertrailapp.com/systems/93137064/events Has system level events just not actual app events (ala badpenny stuff)
Assignee | ||
Comment 1•10 years ago
|
||
Let me verify whether those are going to syslog at all.
Assignee: relops → dustin
Assignee | ||
Comment 2•10 years ago
|
||
No -- and that makes sense, since the logging setup is in relengapi.wsgi, which isn't used in celery.
But worse, application logging doesn't appear in celeryd.log, either.
Assignee | ||
Comment 3•10 years ago
|
||
I found https://pypi.python.org/pypi/logging_tree while debugging this -- very cool!
However, I was wrong in comment 2 (just forgot to deploy my tweaks). The log messages *are* appearing in celeryd.log. So we just need to find a way to get those to syslog.
Assignee | ||
Comment 4•10 years ago
|
||
A partial solution is to forward logs via supervisord, which I've just implemented. It gets the data there, but since celeryd is adding its own log format, it ends up duplicating a lot of info on each line.
Assignee | ||
Comment 5•10 years ago
|
||
Oh, we have /data/www/relengapi/celery which is a Python script just like relengapi.wsgi. So I can just add the logging there. Duh.
Assignee | ||
Comment 6•10 years ago
|
||
Actually I didn't land the partial solution in comment 4. I went with https://github.com/mozilla/build-relengapi/pull/286 instead. Among other things, this should be easily made compatible with structured logging.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 7•10 years ago
|
||
It looks like I never deployed this to production. Deployed now.
You need to log in
before you can comment on or make changes to this bug.
Description
•