From dc8ad3b59e41ffce53541411649b6838e905b8b5 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 25 Aug 2009 18:25:16 +0200 Subject: 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 --- lib/Plugins/FileTransfer.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'lib/Plugins/FileTransfer.cpp') diff --git a/lib/Plugins/FileTransfer.cpp b/lib/Plugins/FileTransfer.cpp index d3d09969..4ed9a236 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 -#include -#include -#include -#include #include #include #include #include +#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 ) -- cgit