github.com/shoshinnikita/budget-manager@v0.7.1-0.20220131195411-8c46ff1c6778/internal/web/utils/error_processing.go (about)

     1  package utils
     2  
     3  import (
     4  	"github.com/ShoshinNikita/budget-manager/internal/logger"
     5  )
     6  
     7  func LogInternalError(log logger.Logger, respMsg string, internalErr error) {
     8  	log.WithFields(logger.Fields{"msg": respMsg, "error": internalErr}).Error("request error")
     9  }