Skip to content

Commit f781c98

Browse files
Copilotriccardobl
andcommitted
Improve exception logging to include stack trace
Co-authored-by: riccardobl <4943530+riccardobl@users.noreply.github.com>
1 parent 99c9f18 commit f781c98

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jme3-android/src/main/java/com/jme3/app/state/VideoRecorderAppState.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ public void reshape(ViewPort vp, int w, int h) {
317317
"Window resized from {0}x{1} to {2}x{3}. Previous recording saved to: {4}",
318318
new Object[]{writer.width, writer.height, w, h, file.getAbsolutePath()});
319319
} catch (Exception ex) {
320-
Logger.getLogger(VideoRecorderAppState.class.getName()).log(Level.SEVERE, "Error closing video on reshape: {0}", ex);
320+
Logger.getLogger(VideoRecorderAppState.class.getName()).log(Level.SEVERE, "Error closing video on reshape", ex);
321321
}
322322
writer = null;
323323

jme3-desktop/src/main/java/com/jme3/app/state/VideoRecorderAppState.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ public void reshape(ViewPort vp, int w, int h) {
302302
"Window resized from {0}x{1} to {2}x{3}. Previous recording saved to: {4}",
303303
new Object[]{writer.width, writer.height, w, h, file.getAbsolutePath()});
304304
} catch (Exception ex) {
305-
Logger.getLogger(VideoRecorderAppState.class.getName()).log(Level.SEVERE, "Error closing video on reshape: {0}", ex);
305+
Logger.getLogger(VideoRecorderAppState.class.getName()).log(Level.SEVERE, "Error closing video on reshape", ex);
306306
}
307307
writer = null;
308308

0 commit comments

Comments
 (0)