[mlpack-git] master: Update log.cpp (876de9c)

gitdub at mlpack.org gitdub at mlpack.org
Thu Feb 25 15:11:21 EST 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/fd84f3a2e53592d723a8e8a76dadb8aa76820913...1a9c41a86be1fa1dcc5c3b90dd959c2255c3bb8e

>---------------------------------------------------------------

commit 876de9c45137678ff18d68a942d546de45f525a1
Author: Grzegorz Krajewski <krajekg at gmail.com>
Date:   Thu Feb 25 21:11:21 2016 +0100

    Update log.cpp


>---------------------------------------------------------------

876de9c45137678ff18d68a942d546de45f525a1
 src/mlpack/core/util/log.cpp | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/mlpack/core/util/log.cpp b/src/mlpack/core/util/log.cpp
index 155da34..03ce9fc 100644
--- a/src/mlpack/core/util/log.cpp
+++ b/src/mlpack/core/util/log.cpp
@@ -7,10 +7,6 @@
 #include "log.hpp"
 #include "backtrace.hpp"
 
-#ifdef BACKTRACE_FOUND
-  #include BACKTRACE_HEADER
-#endif
-
 // Color code escape sequences -- but not on Windows.
 #ifndef _WIN32
   #define BASH_RED "\033[0;31m"
@@ -59,7 +55,7 @@ void Log::Assert(bool condition, const std::string& message)
 #endif
     Log::Debug << message << std::endl;
 
-    throw std::runtime_error("Log::Assert() failed:" + message);
+    throw std::runtime_error("Log::Assert() failed: " + message);
   }
 }
 #else




More information about the mlpack-git mailing list