Fix references

This commit is contained in:
Pedro Algarvio 2015-01-07 05:47:50 +00:00
parent 4953576266
commit 04f65c52aa

View File

@ -287,7 +287,7 @@ class SaltLoggingClass(six.with_metaclass(LoggingMixInMeta, LOGGING_LOGGER_CLASS
extra = None extra = None
# Let's try to make every logging message unicode # Let's try to make every logging message unicode
if isinstance(msg, string_types) and not isinstance(msg, text_type): if isinstance(msg, six.string_types) and not isinstance(msg, six.text_type):
try: try:
_msg = msg.decode('utf-8', 'replace') _msg = msg.decode('utf-8', 'replace')
except UnicodeDecodeError: except UnicodeDecodeError:
@ -295,7 +295,7 @@ class SaltLoggingClass(six.with_metaclass(LoggingMixInMeta, LOGGING_LOGGER_CLASS
else: else:
_msg = msg _msg = msg
if PY3: if six.PY3:
logrecord = _log_record_factory(name, level, fn, lno, _msg, args, logrecord = _log_record_factory(name, level, fn, lno, _msg, args,
exc_info, func, sinfo) exc_info, func, sinfo)
else: else: