2020-09-09 11:48:46 +02:00
|
|
|
package adverr
|
|
|
|
|
2020-09-09 14:06:31 +02:00
|
|
|
// DisableTrace decides if any call stack traces will be gathered when creating Errors
|
|
|
|
// If your application is doing performance-heavy tasks with lots of Error creations, you may consider setting this to true
|
|
|
|
// If set to true, all CallTraces in Error will be nil
|
2020-09-10 14:39:18 +02:00
|
|
|
var DisableTrace bool = false
|
2020-09-09 11:48:46 +02:00
|
|
|
|
|
|
|
// CallStackLength decides how many calls from the call stack should be gathered at most
|
2020-09-10 14:39:18 +02:00
|
|
|
// Changing this value has no effect if DisableTrace is true
|
2020-09-09 11:48:46 +02:00
|
|
|
var CallStackLength int = 100
|