Skip to content

Commit

Permalink
Make Mima happier
Browse files Browse the repository at this point in the history
  • Loading branch information
asr2003 authored Nov 11, 2024
1 parent f75748c commit 9824fdf
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,17 @@ object ErrorResponseConfig {
case object Json extends ErrorFormat { val mediaType: MediaType = MediaType.application.json }
}

val default: ErrorResponseConfig = ErrorResponseConfig()
// Backward-compatible apply method for older usage, without logCodecErrors
def apply(
withErrorBody: Boolean,
withStackTrace: Boolean,
maxStackTraceDepth: Int,
errorFormat: ErrorFormat,
): ErrorResponseConfig =
new ErrorResponseConfig(withErrorBody, withStackTrace, maxStackTraceDepth, errorFormat, logCodecErrors = false)

val default: ErrorResponseConfig = ErrorResponseConfig()

val debugConfig: ErrorResponseConfig =
ErrorResponseConfig(withErrorBody = true, withStackTrace = true, maxStackTraceDepth = 0, logCodecErrors = true)

Expand Down

0 comments on commit 9824fdf

Please sign in to comment.