summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'SwifTools')
-rw-r--r--SwifTools/Application/ApplicationPathProvider.cpp5
-rw-r--r--SwifTools/Application/MacOSXApplicationPathProvider.cpp6
2 files changed, 5 insertions, 6 deletions
diff --git a/SwifTools/Application/ApplicationPathProvider.cpp b/SwifTools/Application/ApplicationPathProvider.cpp
index 3a86f28..a5080f9 100644
--- a/SwifTools/Application/ApplicationPathProvider.cpp
+++ b/SwifTools/Application/ApplicationPathProvider.cpp
@@ -6,10 +6,9 @@
#include <SwifTools/Application/ApplicationPathProvider.h>
-#include <iostream>
-
#include <boost/filesystem.hpp>
+#include <Swiften/Base/Log.h>
#include <Swiften/Base/Paths.h>
#include <Swiften/Base/foreach.h>
@@ -27,7 +26,7 @@ boost::filesystem::path ApplicationPathProvider::getProfileDir(const std::string
boost::filesystem::create_directory(result);
}
catch (const boost::filesystem::filesystem_error& e) {
- std::cerr << "ERROR: " << e.what() << std::endl;
+ SWIFT_LOG(error) << e.what() << std::endl;
}
return result;
}
diff --git a/SwifTools/Application/MacOSXApplicationPathProvider.cpp b/SwifTools/Application/MacOSXApplicationPathProvider.cpp
index 086bbaa..684d8b2 100644
--- a/SwifTools/Application/MacOSXApplicationPathProvider.cpp
+++ b/SwifTools/Application/MacOSXApplicationPathProvider.cpp
@@ -6,10 +6,10 @@
#include <SwifTools/Application/MacOSXApplicationPathProvider.h>
-#include <iostream>
-
#include <mach-o/dyld.h>
+#include <Swiften/Base/Log.h>
+
namespace Swift {
MacOSXApplicationPathProvider::MacOSXApplicationPathProvider(const std::string& name) : ApplicationPathProvider(name) {
@@ -23,7 +23,7 @@ boost::filesystem::path MacOSXApplicationPathProvider::getDataDir() const {
boost::filesystem::create_directory(result);
}
catch (const boost::filesystem::filesystem_error& e) {
- std::cerr << "ERROR: " << e.what() << std::endl;
+ SWIFT_LOG(error) << e.what() << std::endl;
}
return result;
}