don't NSLog normal decode failures unless compiled with DEBUG

git-svn-id: https://zxing.googlecode.com/svn/trunk@1849 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
smparkes@smparkes.net 2011-07-08 22:50:07 +00:00
parent 8086857a92
commit 91b55eb5e5

View file

@ -210,11 +210,15 @@ public:
if (decoderResult) [decoderResult release];
decoderResult = [[TwoDDecoderResult alloc] initWithText:resultString points:points];
} catch (ReaderException &rex) {
#ifdef DEBUG
NSLog(@"failed to decode, caught ReaderException '%s'",
rex.what());
#endif
} catch (IllegalArgumentException &iex) {
#ifdef DEBUG
NSLog(@"failed to decode, caught IllegalArgumentException '%s'",
iex.what());
#endif
} catch (...) {
NSLog(@"Caught unknown exception!");
}