Closed Bug 1187735 Opened 11 years ago Closed 9 years ago

A lot of KeyError: 'requestid' in balrog logs

Categories

(Release Engineering Graveyard :: Applications: Balrog (backend), defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rail, Assigned: tzimmermann)

References

Details

(Whiteboard: [lang=python][ready])

I was poking around some balrog HTTP 500 errors and saw these errors: [Sun Jul 26 13:09:16 2015] [error] KeyError: 'requestid' [Sun Jul 26 13:09:19 2015] [error] Traceback (most recent call last): [Sun Jul 26 13:09:19 2015] [error] File "/usr/lib64/python2.6/logging/__init__.py", line 776, in emit [Sun Jul 26 13:09:19 2015] [error] msg = self.format(record) [Sun Jul 26 13:09:19 2015] [error] File "/usr/lib64/python2.6/logging/__init__.py", line 654, in format [Sun Jul 26 13:09:19 2015] [error] return fmt.format(record) [Sun Jul 26 13:09:19 2015] [error] File "/usr/lib64/python2.6/logging/__init__.py", line 439, in format [Sun Jul 26 13:09:19 2015] [error] s = self._fmt % record.__dict__
I could have sworn I'd filed this before but apparently not ... This has been around for sometime, particularly when working in Vagrant - there's something not quite right in the logging at https://github.com/mozilla/balrog/blob/master/auslib/log.py#L9. Either there's an error unrelated to a request, or it occurs before requestid is available.
This is probably caused by the custom Logger code at https://github.com/mozilla/balrog/blob/master/auslib/log.py#L12. I think it's probably best just to kill this now, since our Exception logging is done with Sentry, which makes it trivial to associate log messages with requests.
Priority: -- → P3
Whiteboard: [lang=python][ready]
Thomas found a fix for this: https://github.com/mozilla/balrog/pull/219 Thank you for that!
Assignee: nobody → tzimmermann
In production, thanks for fixing this Thomas!
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Product: Release Engineering → Release Engineering Graveyard
You need to log in before you can comment on or make changes to this bug.