Mercurial > hg > orthanc
diff Core/HttpServer/MongooseServer.cpp @ 108:a6e41de88a53
using glog
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 04 Oct 2012 11:37:56 +0200 |
parents | c996319e90bc |
children | 2a24f43d9dca |
line wrap: on
line diff
--- a/Core/HttpServer/MongooseServer.cpp Thu Oct 04 11:22:20 2012 +0200 +++ b/Core/HttpServer/MongooseServer.cpp Thu Oct 04 11:37:56 2012 +0200 @@ -30,6 +30,7 @@ #include <string.h> #include <stdio.h> #include <boost/thread.hpp> +#include <glog/logging.h> #include "../OrthancException.h" #include "../ChunkedBuffer.h" @@ -530,7 +531,7 @@ } catch (OrthancException& e) { - std::cerr << "MongooseServer Exception [" << e.What() << "]" << std::endl; + LOG(ERROR) << "MongooseServer Exception [" << e.What() << "]"; output.SendHeader(Orthanc_HttpStatus_500_InternalServerError); } }