Mercurial > hg > orthanc
comparison Core/DicomNetworking/Internals/CommandDispatcher.cpp @ 3998:b3f09bc9734b
sharing more code between the loggers
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 05 Jun 2020 18:56:35 +0200 |
parents | 7f296ae25039 |
children |
comparison
equal
deleted
inserted
replaced
3997:febe25d03f08 | 3998:b3f09bc9734b |
---|---|
249 OFCondition AssociationCleanup(T_ASC_Association *assoc) | 249 OFCondition AssociationCleanup(T_ASC_Association *assoc) |
250 { | 250 { |
251 OFCondition cond = ASC_dropSCPAssociation(assoc); | 251 OFCondition cond = ASC_dropSCPAssociation(assoc); |
252 if (cond.bad()) | 252 if (cond.bad()) |
253 { | 253 { |
254 LOG(FATAL) << cond.text(); | 254 LOG(ERROR) << cond.text(); |
255 return cond; | 255 return cond; |
256 } | 256 } |
257 | 257 |
258 cond = ASC_destroyAssociation(&assoc); | 258 cond = ASC_destroyAssociation(&assoc); |
259 if (cond.bad()) | 259 if (cond.bad()) |
260 { | 260 { |
261 LOG(FATAL) << cond.text(); | 261 LOG(ERROR) << cond.text(); |
262 return cond; | 262 return cond; |
263 } | 263 } |
264 | 264 |
265 return cond; | 265 return cond; |
266 } | 266 } |