Skip to content

armgit / floci

Public Imported from GitHub
0

Light, fluffy, and always free - The AWS Local Emulator alternative

fix(logging): pass throwable to errorf so stack traces are logged (#487)

TiM12cf29571d01
diff --git a/src/main/java/io/github/hectorvent/floci/core/common/AwsJson11Controller.java b/src/main/java/io/github/hectorvent/floci/core/common/AwsJson11Controller.java
index bbc66e1a25..dec53983f2 100644
--- a/src/main/java/io/github/hectorvent/floci/core/common/AwsJson11Controller.java
+++ b/src/main/java/io/github/hectorvent/floci/core/common/AwsJson11Controller.java
@@ -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);
}
}