From eb155f7ef20fc5eb50c600e139b8ae17db1ac7dc Mon Sep 17 00:00:00 2001 From: Timon Ringwald Date: Thu, 10 Sep 2020 14:39:18 +0200 Subject: [PATCH] fixed default value for DisableTrace --- globals.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/globals.go b/globals.go index dff85da..a114b46 100644 --- a/globals.go +++ b/globals.go @@ -3,7 +3,8 @@ package adverr // 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 -var DisableTrace bool = true +var DisableTrace bool = false // CallStackLength decides how many calls from the call stack should be gathered at most +// Changing this value has no effect if DisableTrace is true var CallStackLength int = 100