aliaspooryorik
development
environment function moduleSettings.sentry.enableExceptionLogging = false;
to override the setting from the main moduleSettings
. The other option (I think) is to append to the modules.exclude
array (for dev). So wondering what the smart folks do 🙂 Thankswil-shiftinsert
07/26/2022, 11:51 AMfunction development(){
modules.exclude.append("someModule")
}
garciadev
07/26/2022, 2:07 PMenableLogBoxAppender
setting in ColdBox.cfcaliaspooryorik
function development(){
moduleSettings.sentry.enableExceptionLogging = false;
}
lmajano
07/26/2022, 7:38 PMwil-shiftinsert
08/13/2022, 12:27 PMfunction development(){
moduleSettings.sentry.enableExceptionLogging = false;
moduleSettings.sentry.enableLogBoxAppender = false;
}
Because I did not want any sentry activity at all in my dev environment now I could also go for:
function development(){
modules.exclude.append("sentry")
}
I guess both approaches are very effective 🙂 In the second option I don’t have to worry about sentry settings at all.