summaryrefslogtreecommitdiffstats
path: root/remoting/host/log_to_server.cc
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/host/log_to_server.cc')
-rw-r--r--remoting/host/log_to_server.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/remoting/host/log_to_server.cc b/remoting/host/log_to_server.cc
index 723b709..efac9c2 100644
--- a/remoting/host/log_to_server.cc
+++ b/remoting/host/log_to_server.cc
@@ -21,10 +21,6 @@ using buzz::XmlElement;
namespace remoting {
-namespace {
-const char kLogCommand[] = "log";
-} // namespace
-
LogToServer::LogToServer(ChromotingHost* host,
ServerLogEntry::Mode mode,
SignalStrategy* signal_strategy)
@@ -112,8 +108,7 @@ void LogToServer::SendPendingEntries() {
return;
}
// Make one stanza containing all the pending entries.
- scoped_ptr<XmlElement> stanza(new XmlElement(QName(
- kChromotingXmlNamespace, kLogCommand)));
+ scoped_ptr<XmlElement> stanza(ServerLogEntry::MakeStanza());
while (!pending_entries_.empty()) {
ServerLogEntry& entry = pending_entries_.front();
stanza->AddElement(entry.ToStanza().release());