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:
TiM authored and GitHub committed 2026-04-16 21:42:55 -05:00
1 parent e9f6417713
commit 12cf29571d
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);
}
}