diff options
author | lado <herrlado@gmail.com> | 2011-11-13 02:00:43 +0100 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2011-11-13 02:00:43 +0100 |
commit | 9418fbde87e4c276e9a0d24ffc92244926580532 (patch) | |
tree | a40587e455e75652c6eab1d95e0e1c9b75ee500e /vdr-vdrmanager/sock.cpp | |
parent | 855dccbbda9ff16277589b021363b397cad605c3 (diff) | |
download | vdr-manager-9418fbde87e4c276e9a0d24ffc92244926580532.tar.gz vdr-manager-9418fbde87e4c276e9a0d24ffc92244926580532.tar.bz2 |
better logging
Diffstat (limited to 'vdr-vdrmanager/sock.cpp')
-rw-r--r-- | vdr-vdrmanager/sock.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/vdr-vdrmanager/sock.cpp b/vdr-vdrmanager/sock.cpp index a5a029d..0bda8da 100644 --- a/vdr-vdrmanager/sock.cpp +++ b/vdr-vdrmanager/sock.cpp @@ -126,7 +126,7 @@ cVdrmanagerClientSocket * cVdrmanagerServerSocket::Accept() { newsocket = NULL; } dsyslog( - "[vdrmon] connect from %s, port %hd - %s", inet_ntoa(clientname.sin_addr), ntohs(clientname.sin_port), accepted ? "accepted" : "DENIED"); + "[vdrmanager] connect from %s, port %hd - %s", inet_ntoa(clientname.sin_addr), ntohs(clientname.sin_port), accepted ? "accepted" : "DENIED"); } } else if (errno != EINTR && errno != EAGAIN ) @@ -218,7 +218,12 @@ void cVdrmanagerClientSocket::Disconnect() { bool cVdrmanagerClientSocket::PutLine(string line) { //TODO http://projects.vdr-developer.org/issues/790 string line2 = cHelpers::compress_string(line); - isyslog("PutLine, line size is %s, with zlib it would be %s", line.size(), line2.size()); + unsigned long l = line.size(); + unsigned long l2 = line2.size(); + if(l2 == 0){ + l2 = 1; + } + isyslog("[vdrmanager] PutLine, line size is %lu, with zlib it would be %lu (factor %lu)", l, l2, l/l2); // add line to write buffer writebuf += line; |