mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 22:11:36 -05:00
fix(logging): pass throwable to errorf so stack traces are logged (#487)
LOG.errorf(String, Object...) treats trailing args as format params, so the catch-all exception handler in AwsJson11Controller silently dropped the stack trace. Switch to errorf(Throwable, String, Object...) so unexpected failures surface with their cause attached, matching the pattern used in AwsJsonController and AwsJsonCborController. Refs floci-io/floci #482
This commit is contained in:
1 file changed
+1
-1
@@ -144,7 +144,7 @@ public class AwsJson11Controller {
|
||||
} catch (AwsException e) {
|
||||
return JsonErrorResponseUtils.createErrorResponse(e);
|
||||
} catch (Exception e) {
|
||||
LOG.errorf("Error processing %s request", serviceKey, e);
|
||||
LOG.errorf(e, "Error processing %s request", serviceKey);
|
||||
return JsonErrorResponseUtils.createErrorResponse(e);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user