Merge "Fix needed for keystone middleware logging"

This commit is contained in:
Jenkins
2012年12月15日 18:50:47 +00:00
committed by Gerrit Code Review

View File

@@ -624,6 +624,11 @@ class SwiftLogFormatter(logging.Formatter):
"""
def format(self, record):
if not hasattr(record, 'server'):
# Catch log messages that were not initiated by swift
# (for example, the keystone auth middleware)
record.server = record.name
return logging.Formatter.format(self, record)
msg = logging.Formatter.format(self, record)
if (record.txn_id and record.levelno != logging.INFO and
record.txn_id not in msg):
Reference in New Issue
openstack/swift
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.