From 40de4ad32bf8d6b285903628dfc1bcfd0c1a708b Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Tue, 4 Aug 2015 08:49:06 +0300 Subject: server: bits of log client-qt: implemented basic message dispatcher ability to send message (all untested) --- server/src/utilities.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'server/src/utilities.cpp') diff --git a/server/src/utilities.cpp b/server/src/utilities.cpp index 5ea14c1..ab10e30 100644 --- a/server/src/utilities.cpp +++ b/server/src/utilities.cpp @@ -18,6 +18,8 @@ */ +#include + #include "utilities.h" #include "../../protocol/udm.pb.h" @@ -33,7 +35,7 @@ std::string replace_home_var(const std::string &path) std::shared_ptr pack_data(const std::string &buf, int *size_) { -// BOOST_LOG_TRIVIAL(debug)<<__FILE__<<":"<<__LINE__<<"\t"<<__func__; + BOOST_LOG_TRIVIAL(debug)<<__FILE__<<":"<<__LINE__<<"\t"<<__func__; std::shared_ptr ptr = std::make_shared(new char[buf.length() + 4]); int32_t size = buf.length(); *size_ = size + 4; @@ -48,8 +50,8 @@ std::shared_ptr pack_data(const std::string &buf, int *size_) std::shared_ptr pack_msg(server_msg *msg, int *size_) { -// BOOST_LOG_TRIVIAL(debug)<<__FILE__<<":"<<__LINE__<<"\t"<<__func__; -// BOOST_LOG_TRIVIAL(trace)<<"packing message:\n"<DebugString(); std::string msg_buf; msg->SerializeToString(&msg_buf); return pack_data(msg_buf, size_); -- cgit v1.2.3