Skip to content
Snippets Groups Projects
Commit b4c6a6c4 authored by Jaime Perez Crespo's avatar Jaime Perez Crespo
Browse files

Simplify NotFound exceptions by removing the backtrace. It doesn't really help much.

parent 2bfaaef9
No related branches found
No related tags found
No related merge requests found
......@@ -51,4 +51,18 @@ class SimpleSAML_Error_NotFound extends SimpleSAML_Error_Error {
return $this->reason;
}
/**
* NotFound exceptions don't need to display a backtrace, as they are very simple and the trace is usually trivial,
* so just log the message without any backtrace at all.
*
* @param bool $anonymize Whether to anonymize the trace or not.
*
* @return array
*/
public function format($anonymize = false) {
return array(
$this->getClass().': '.$this->getMessage(),
);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment