diff options
| author | Willem Jan Palenstijn <wjp@usecode.org> | 2015-07-17 14:00:26 +0200 | 
|---|---|---|
| committer | Willem Jan Palenstijn <wjp@usecode.org> | 2015-07-17 14:00:26 +0200 | 
| commit | 004e25a7afe080bdaddb19e48e426672e6e73479 (patch) | |
| tree | a9e0cc003691fbfbe721fe58bf6ff8a3b0621e1c /python/astra | |
| parent | ba092a5602abba8b1a4bd17988dee6b567f02b7a (diff) | |
| parent | 4d39c35d6c9124c26de64c9d227a25f612903a2a (diff) | |
| download | astra-004e25a7afe080bdaddb19e48e426672e6e73479.tar.gz astra-004e25a7afe080bdaddb19e48e426672e6e73479.tar.bz2 astra-004e25a7afe080bdaddb19e48e426672e6e73479.tar.xz astra-004e25a7afe080bdaddb19e48e426672e6e73479.zip | |
Merge pull request #84 from dmpelt/log-highlevel-fix
Fix formatting when passing strings to log from high-level code
Diffstat (limited to 'python/astra')
| -rw-r--r-- | python/astra/log_c.pyx | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/python/astra/log_c.pyx b/python/astra/log_c.pyx index f16329f..55c63e6 100644 --- a/python/astra/log_c.pyx +++ b/python/astra/log_c.pyx @@ -53,19 +53,19 @@ cdef extern from "astra/Logging.h" namespace "astra::CLogger":  def log_debug(sfile, sline, message):      cstr = list(map(six.b,(sfile,message))) -    debug(cstr[0],sline,cstr[1]) +    debug(cstr[0],sline,"%s",<char*>cstr[1])  def log_info(sfile, sline, message):      cstr = list(map(six.b,(sfile,message))) -    info(cstr[0],sline,cstr[1]) +    info(cstr[0],sline,"%s",<char*>cstr[1])  def log_warn(sfile, sline, message):      cstr = list(map(six.b,(sfile,message))) -    warn(cstr[0],sline,cstr[1]) +    warn(cstr[0],sline,"%s",<char*>cstr[1])  def log_error(sfile, sline, message):      cstr = list(map(six.b,(sfile,message))) -    error(cstr[0],sline,cstr[1]) +    error(cstr[0],sline,"%s",<char*>cstr[1])  def log_enable():      enable() | 
