Mercurial > hg > orthanc
comparison Plugins/Engine/PluginsManager.cpp @ 901:7d88f3f4a3b3 plugins
refactoring IsServedUri, answer PNG images, regular expression groups
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 18 Jun 2014 15:22:13 +0200 |
parents | bb0a51561016 |
children | 2732b5f57d9c |
comparison
equal
deleted
inserted
replaced
900:1b92ce45cc8d | 901:7d88f3f4a3b3 |
---|---|
153 default: | 153 default: |
154 break; | 154 break; |
155 } | 155 } |
156 | 156 |
157 PluginsManager* that = reinterpret_cast<PluginsManager*>(context->pluginsManager); | 157 PluginsManager* that = reinterpret_cast<PluginsManager*>(context->pluginsManager); |
158 bool error = false; | |
158 | 159 |
159 for (std::list<IPluginServiceProvider*>::iterator | 160 for (std::list<IPluginServiceProvider*>::iterator |
160 it = that->serviceProviders_.begin(); | 161 it = that->serviceProviders_.begin(); |
161 it != that->serviceProviders_.end(); it++) | 162 it != that->serviceProviders_.end(); it++) |
162 { | 163 { |
168 } | 169 } |
169 } | 170 } |
170 catch (OrthancException&) | 171 catch (OrthancException&) |
171 { | 172 { |
172 // This service provider has failed, go to the next | 173 // This service provider has failed, go to the next |
173 } | 174 error = true; |
174 } | 175 } |
175 | 176 } |
176 LOG(ERROR) << "Plugin invoking unknown service " << service; | 177 |
178 if (error) | |
179 { | |
180 LOG(ERROR) << "Exception when dealing with service " << service; | |
181 } | |
182 else | |
183 { | |
184 LOG(ERROR) << "Plugin invoking unknown service " << service; | |
185 } | |
186 | |
177 return -1; | 187 return -1; |
178 } | 188 } |
179 | 189 |
180 | 190 |
181 PluginsManager::PluginsManager() | 191 PluginsManager::PluginsManager() |