- snprintf(whatBuffer, whatBufferSize, "UNIX error exception: %d", this->error);
- secnotice("security_exception", "%s", what());
- LogBacktrace();
+ if(!suppresslogging || secinfoenabled("security_exception")) {
+ snprintf(whatBuffer, whatBufferSize, "UNIX error exception: %d", this->error);
+ secnotice("security_exception", "%s", what());
+ LogBacktrace();
+ }