Actions
Feature #8072
closedpaddles: logging needs a better format
% Done:
0%
Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
Description
A sample of paddles' log output:
path - /runs/teuthology-2014-04-10_22:35:02-upgrade:dumpling-x:stress-split-firefly-distro-basic-vps/jobs/184216/ status - 200 OK method - PUT controller - JobController.index params - [] hooks - ['TransactionHook', 'RequestViewerHook', 'CorsHook'] /errors/invalid/?error_message=job with job_id 184442 already exists path - /runs/teuthology-2014-04-10_23:00:35-fs-firefly-distro-basic-plana/jobs/ status - 200 OK method - POST controller - JobsController.index params - [] hooks - ['TransactionHook', 'RequestViewerHook', 'CorsHook'] path - /errors/invalid/ status - 400 Bad Request method - POST controller - ErrorsController.invalid params - [('error_message', 'job with job_id 184442 already exists')] hooks - ['TransactionHook', 'RequestViewerHook', 'CorsHook']
Notice the lack of timestamps. I'd also like the format to be more compact.
Updated by Alfredo Deza about 10 years ago
This output is part of the RequestViwerHook spitting to stdout (by default), it is not logging.
Although you can configure that hook to look for any kind of information from the WSGI environ, it might be better
to just configure logging to see actual log statements from the server coming into the app.
RequestViwerHook can be configured in a lot of ways: http://pecan.readthedocs.org/en/latest/hooks.html#configuring-requestviewerhook
Updated by Zack Cerza about 10 years ago
I'm attempting to configure gunicorn logging right now. I am having a really hard time getting it to cooperate.
Updated by Zack Cerza about 10 years ago
- Status changed from New to Resolved
- Assignee set to Zack Cerza
Finally got it all figured out
Actions