Closed kutchar closed 7 years ago
"Log & throw" is an anti-pattern and makes for noisy log files. For example, duplicate key exceptions are handled by the application logic and don't really need to be logged as errors.
https://github.com/jhc-systems/sqlest/blob/master/sqlest/src/main/scala/sqlest/executor/Database.scala#L109
https://github.com/jhc-systems/sqlest/blob/master/sqlest/src/main/scala/sqlest/executor/Database.scala#L284
https://github.com/jhc-systems/sqlest/blob/master/sqlest/src/main/scala/sqlest/executor/Database.scala#L315
@DavidGregory084 thanks for merging it. Any idea when you'd be able to release it?
"Log & throw" is an anti-pattern and makes for noisy log files. For example, duplicate key exceptions are handled by the application logic and don't really need to be logged as errors.
https://github.com/jhc-systems/sqlest/blob/master/sqlest/src/main/scala/sqlest/executor/Database.scala#L109
https://github.com/jhc-systems/sqlest/blob/master/sqlest/src/main/scala/sqlest/executor/Database.scala#L284
https://github.com/jhc-systems/sqlest/blob/master/sqlest/src/main/scala/sqlest/executor/Database.scala#L315