Skip to content

Commit

Permalink
bug fix for --regs option
Browse files Browse the repository at this point in the history
  • Loading branch information
SeeFlowerX committed Feb 6, 2024
1 parent 5fbaa14 commit 06c94cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions user/event/event_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,11 @@ func (this *ContextEvent) GetStackTrace(s string) string {
}
s += fmt.Sprintf(", RegsInfo:\n%s", strings.Join(reg_info, "\n"))
}
if this.rec.ExtraOptions.ShowRegs {
if this.mconf.ShowRegs {
s += ", Regs:\n" + this.GetRegsString()
}
if this.Stackinfo != "" {
if this.rec.ExtraOptions.ShowRegs {
if this.mconf.ShowRegs {
s += fmt.Sprintf("\nBacktrace:\n%s", this.Stackinfo)
} else {
s += fmt.Sprintf(", Backtrace:\n%s", this.Stackinfo)
Expand Down

0 comments on commit 06c94cc

Please sign in to comment.