mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
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:
parent
8086857a92
commit
91b55eb5e5
|
@ -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!");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue