From 375dc63db3c04fb652f926863021b301f4208751 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Thu, 8 Aug 2013 15:57:16 +0200 Subject: [PATCH] Make output conditional --- Library/OSRM.cpp | 2 +- Library/OSRM.h | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Library/OSRM.cpp b/Library/OSRM.cpp index f0937c988..1b714ef84 100644 --- a/Library/OSRM.cpp +++ b/Library/OSRM.cpp @@ -87,7 +87,7 @@ OSRM::~OSRM() { } void OSRM::RegisterPlugin(BasePlugin * plugin) { - std::cout << "[plugin] " << plugin->GetDescriptor() << std::endl; + SimpleLogger().Write() << "[plugin] " << plugin->GetDescriptor() << std::endl; pluginMap[plugin->GetDescriptor()] = plugin; } diff --git a/Library/OSRM.h b/Library/OSRM.h index a879a1223..7647f72c3 100644 --- a/Library/OSRM.h +++ b/Library/OSRM.h @@ -31,8 +31,9 @@ or see http://www.gnu.org/licenses/agpl.txt. #include "../Plugins/ViaRoutePlugin.h" #include "../Plugins/RouteParameters.h" #include "../Util/IniFile.h" -#include "../Util/OSRMException.h" #include "../Util/InputFileUtil.h" +#include "../Util/OSRMException.h" +#include "../Util/SimpleLogger.h" #include "../Server/BasicDatastructures.h" #include @@ -54,4 +55,4 @@ private: PluginMap pluginMap; }; -#endif //OSRM_H \ No newline at end of file +#endif //OSRM_H