summaryrefslogtreecommitdiffstats
path: root/src/uscxml/messages/Data.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/uscxml/messages/Data.cpp')
-rw-r--r--src/uscxml/messages/Data.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/uscxml/messages/Data.cpp b/src/uscxml/messages/Data.cpp
index a75e774..5d7dbf2 100644
--- a/src/uscxml/messages/Data.cpp
+++ b/src/uscxml/messages/Data.cpp
@@ -97,11 +97,11 @@ Data Data::fromJSON(const std::string& jsonString) {
int nrTokens = trimmed.size() / frac;
if (t != NULL) {
free(t);
-// LOG(INFO) << "Increasing JSON length to token ratio to 1/" << frac;
+// LOG(USCXML_INFO) << "Increasing JSON length to token ratio to 1/" << frac;
}
t = (jsmntok_t*)malloc((nrTokens + 1) * sizeof(jsmntok_t));
if (t == NULL) {
- LOG(ERROR) << "Cannot parse JSON, ran out of memory!";
+ LOG(USCXML_ERROR) << "Cannot parse JSON, ran out of memory!";
return data;
}
memset(t, 0, (nrTokens + 1) * sizeof(jsmntok_t));
@@ -112,13 +112,13 @@ Data Data::fromJSON(const std::string& jsonString) {
if (rv != 0) {
switch (rv) {
case JSMN_ERROR_NOMEM:
- LOG(ERROR) << "Cannot parse JSON, not enough tokens were provided!";
+ LOG(USCXML_ERROR) << "Cannot parse JSON, not enough tokens were provided!";
break;
case JSMN_ERROR_INVAL:
- LOG(ERROR) << "Cannot parse JSON, invalid character inside JSON string!";
+ LOG(USCXML_ERROR) << "Cannot parse JSON, invalid character inside JSON string!";
break;
case JSMN_ERROR_PART:
- LOG(ERROR) << "Cannot parse JSON, the string is not a full JSON packet, more bytes expected!";
+ LOG(USCXML_ERROR) << "Cannot parse JSON, the string is not a full JSON packet, more bytes expected!";
break;
default:
break;