summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/FileTransfer.cpp
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-08-25 18:25:16 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-08-25 18:25:16 +0200
commitdc8ad3b59e41ffce53541411649b6838e905b8b5 (patch)
treef3d4aa18dc4777f0028baf75e0ec44cdca366bac /lib/Plugins/FileTransfer.cpp
parent58e6c582c3103dac17f5575c6bd17ee7c0784f05 (diff)
downloadabrt-dc8ad3b59e41ffce53541411649b6838e905b8b5.tar.gz
abrt-dc8ad3b59e41ffce53541411649b6838e905b8b5.tar.xz
abrt-dc8ad3b59e41ffce53541411649b6838e905b8b5.zip
more sensible logging
comm_layer_inner_debug was jumping through the hoops in order to simply send a message to stderr. this can be made much simpler. also, set logmode to LOGMODE_SYSLOG in abrt daemon, making its log visible if it is daemonized. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Plugins/FileTransfer.cpp')
-rw-r--r--lib/Plugins/FileTransfer.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/Plugins/FileTransfer.cpp b/lib/Plugins/FileTransfer.cpp
index d3d0996..4ed9a23 100644
--- a/lib/Plugins/FileTransfer.cpp
+++ b/lib/Plugins/FileTransfer.cpp
@@ -19,17 +19,13 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include "FileTransfer.h"
-#include <stdio.h>
-#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
#include <iostream>
#include <sstream>
#include <fstream>
#include <curl/curl.h>
+#include "abrtlib.h"
+#include "FileTransfer.h"
#include "DebugDump.h"
#include "ABRTException.h"
#include "CommLayerInner.h"
@@ -141,7 +137,7 @@ void CFileTransfer::CreateArchive(const std::string& pArchiveName,
throw CABRTException(EXCEP_PLUGIN, "CFileTransfer::CreateArchive(): unknown/unsupported archive type "+m_sArchiveType);
}
- comm_layer_inner_debug(cmdline);
+ log("Executing '%s'", cmdline.c_str());
result = system(cmdline.c_str());
if( result != 0 )