Changeset 1939 for trunk/python


Ignore:
Timestamp:
09/22/10 12:28:12 (14 years ago)
Author:
Malte Marquarding
Message:

Ticket #210: cast to string in case we get passed unicode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/logging.py

    r1862 r1939  
    4848        logs = self._log.strip()
    4949        if len(logs) > 0:
     50            if isinstance(self.logger, LogSink):
     51                #can't handle unicode in boost signature
     52                logs = str(logs)
    5053            self.logger.post(logs, priority=level, origin=origin)
    5154        if isinstance(self.logger, LogSink):
Note: See TracChangeset for help on using the changeset viewer.