Procházet zdrojové kódy

HPCC-9249 Revised display message based on code review

Kevin Wang před 11 roky
rodič
revize
b20dd4b53d
1 změnil soubory, kde provedl 2 přidání a 3 odebrání
  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();
 }