Skip to content
Snippets Groups Projects
Commit 57751b94 authored by jkerdreu's avatar jkerdreu
Browse files

Fix the "string" case


git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/trunk@2056 b32b6428-25c9-4566-ad07-03861ab6144f
parent 6f6548c1
Branches
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@ class WARP10Logger:
if rsp.status != 200:
logger.error('%s: %s' % (rsp.status,rsp.reason))
return
#print(DATA_BUF)
DATA_BUF = ''
def parse_msg(self,msg):
......@@ -49,6 +50,8 @@ class WARP10Logger:
name = '%s.%s' % (base,k)
tags = '{devid=%s}' % msg.source
value = msg.body[k]
if type(value) == str:
value ='\"%s\"' % value
if value != None:
buf = buf +"%s// %s%s %s\n" % (now,name,tags,value)
DATA_BUF = DATA_BUF + buf
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment