Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
107:3b45473c0a73 | 108:a6e41de88a53 |
---|---|
28 #include <boost/algorithm/string.hpp> | 28 #include <boost/algorithm/string.hpp> |
29 #include <iostream> | 29 #include <iostream> |
30 #include <string.h> | 30 #include <string.h> |
31 #include <stdio.h> | 31 #include <stdio.h> |
32 #include <boost/thread.hpp> | 32 #include <boost/thread.hpp> |
33 #include <glog/logging.h> | |
33 | 34 |
34 #include "../OrthancException.h" | 35 #include "../OrthancException.h" |
35 #include "../ChunkedBuffer.h" | 36 #include "../ChunkedBuffer.h" |
36 #include "mongoose.h" | 37 #include "mongoose.h" |
37 | 38 |
528 handler->Handle(output, std::string(request->request_method), | 529 handler->Handle(output, std::string(request->request_method), |
529 uri, headers, arguments, postData); | 530 uri, headers, arguments, postData); |
530 } | 531 } |
531 catch (OrthancException& e) | 532 catch (OrthancException& e) |
532 { | 533 { |
533 std::cerr << "MongooseServer Exception [" << e.What() << "]" << std::endl; | 534 LOG(ERROR) << "MongooseServer Exception [" << e.What() << "]"; |
534 output.SendHeader(Orthanc_HttpStatus_500_InternalServerError); | 535 output.SendHeader(Orthanc_HttpStatus_500_InternalServerError); |
535 } | 536 } |
536 } | 537 } |
537 else | 538 else |
538 { | 539 { |