diff options
Diffstat (limited to 'SwifTools/CrashReporter.cpp')
-rw-r--r-- | SwifTools/CrashReporter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/SwifTools/CrashReporter.cpp b/SwifTools/CrashReporter.cpp index f47ab33..47015df 100644 --- a/SwifTools/CrashReporter.cpp +++ b/SwifTools/CrashReporter.cpp @@ -1,16 +1,16 @@ /* - * Copyright (c) 2012-2013 Remko Tronçon + * Copyright (c) 2012-2014 Remko Tronçon * Licensed under the GNU General Public License v3. * See Documentation/Licenses/GPLv3.txt for more information. */ - +#include <Swiften/Base/Log.h> #include <SwifTools/CrashReporter.h> #include <Swiften/Base/Platform.h> #include <Swiften/Base/Path.h> #if defined(HAVE_BREAKPAD) #pragma GCC diagnostic ignored "-Wold-style-cast" #include <boost/smart_ptr/make_shared.hpp> @@ -39,19 +39,19 @@ struct CrashReporter::Private { }; CrashReporter::CrashReporter(const boost::filesystem::path& path) { // Create the path that will contain the crash dumps if (!boost::filesystem::exists(path)) { try { boost::filesystem::create_directories(path); } catch (const boost::filesystem::filesystem_error& e) { - std::cerr << "ERROR: " << e.what() << std::endl; + SWIFT_LOG(error) << "ERROR: " << e.what() << std::endl; } } p = boost::make_shared<Private>(); #if defined(SWIFTEN_PLATFORM_WINDOWS) // FIXME: Need UTF8 conversion from string to wstring std::string pathString = pathToString(path); p->handler = boost::shared_ptr<google_breakpad::ExceptionHandler>( // Not using make_shared, because 'handleDump' seems to have problems with VC2010 |