treeherder/puppet
Ed Morley 3ddf626c9c Bug 1217374 - Output hawkrest WARNINGs to help debug hawk auth problems
This means rather than just returning this to the client:
'{"detail":"Hawk authentication failed"}'

We'll output more information to the stage/prod/Vagrant console and thus
logs. eg:

WARNING [hawkrest:81] access denied: MacMismatch: MACs do not match;
ours: 8HqvrjA7MO0CmJ3c6Ij2VfEuZxkchEL+pOL6Cw7At2c=; theirs:
CyDv9vnmqP6yGqT+LknMA+FOwJvSLATJwvVgG0OTl8A=

Thanks to the log.warn() here:
https://github.com/kumar303/hawkrest/blob/0.0.8/hawkrest/__init__.py#L80

I've removed the log level set on the console handler, since I think
it's clearer to set them on the loggers themselves, but it's not
entirely clear what Django logging best practices are, since the Django
docs are not very specific.
2015-10-22 15:21:03 +01:00
..
files Bug 1217374 - Output hawkrest WARNINGs to help debug hawk auth problems 2015-10-22 15:21:03 +01:00
manifests Bug 1197186 - Move settings to treeherder/config/ 2015-10-08 19:59:46 +01:00