Skip to content

Commit

Permalink
ref: rename default masking error message on recover middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
mdanialr committed Oct 7, 2024
1 parent d9739b7 commit 3f61f02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions middleware/recover.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ func Recover(c http.Context) {
m := log.Map{"msg": debug.GetStackTraceInString(1)}
log.Runtime(c).Error(m)

prefixMsg := "Panic Runtime Error - "
suffixMsg := "Terjadi kesalahan, silahkan hubungi IT Helpdesk" // use masked message as the default
prefixMsg := "Runtime Error - "
suffixMsg := "Terjadi kesalahan, mohon coba beberapa saat lagi yaa..." // use masked message as the default
if facades.Config().GetBool("APP_DEBUG") {
// replace with the debug info if its enabled
suffixMsg = fmt.Sprint(r) + " - " + m["msg"].(string)
Expand Down

0 comments on commit 3f61f02

Please sign in to comment.