зеркало из https://github.com/mozilla/treeherder.git
3ddf626c9c
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. |
||
---|---|---|
.. | ||
files | ||
manifests |