浏览代码

HPCC-9249 Revised display message based on code review

Kevin Wang 11 年之前
父节点
当前提交
b20dd4b53d
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      esp/services/ws_smc/ws_smcService.cpp

+ 2 - 3
esp/services/ws_smc/ws_smcService.cpp

@@ -1822,11 +1822,10 @@ const char* CWsSMCEx::createQueueActionInfo(IEspContext &context, const char* st
     CDateTime now;
     now.setNow();
     now.getString(currentTime);
+    info.appendf("%s by <%s> at <%s> from <%s>", state, userId, currentTime.str(), peer.str());
     const char* comment = req.getComment();
     if (comment && *comment)
-        info.appendf("'%s' (commented by <%s> at <%s> from <%s>)", comment, userId, currentTime.str(), peer.str());
-    else
-        info.appendf("%s by <%s> at <%s> from <%s>", state, userId, currentTime.str(), peer.str());
+        info.append(": ' ").append(comment).append("'");
     return info.str();
 }