Mercurial > hg > orthanc
comparison OrthancServer/main.cpp @ 108:a6e41de88a53
using glog
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 04 Oct 2012 11:37:56 +0200 |
parents | 7593b57dc1bf |
children | 80ca409f232f |
comparison
equal
deleted
inserted
replaced
107:3b45473c0a73 | 108:a6e41de88a53 |
---|---|
150 | 150 |
151 // GO !!! | 151 // GO !!! |
152 httpServer.Start(); | 152 httpServer.Start(); |
153 dicomServer.Start(); | 153 dicomServer.Start(); |
154 | 154 |
155 printf("The server has started\n"); | 155 LOG(INFO) << "The server has started"; |
156 Toolbox::ServerBarrier(); | 156 Toolbox::ServerBarrier(); |
157 | 157 |
158 // Stop | 158 // Stop |
159 printf("Finishing\n"); | 159 LOG(INFO) << "The server is stopping"; |
160 } | 160 } |
161 | 161 |
162 storeScp.Done(); | 162 storeScp.Done(); |
163 } | 163 } |
164 catch (OrthancException& e) | 164 catch (OrthancException& e) |
165 { | 165 { |
166 std::cout << "EXCEPT [" << e.What() << "]" << std::endl; | 166 LOG(ERROR) << "EXCEPTION [" << e.What() << "]"; |
167 } | 167 } |
168 | 168 |
169 OrthancFinalize(); | 169 OrthancFinalize(); |
170 | 170 |
171 return 0; | 171 return 0; |