Skip to content

Commit 5250ed7

Browse files
committed
don't serialize object in logging, work with strings only
1 parent 2e8d19c commit 5250ed7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vcell-native/src/main/java/org/vcell/libvcell/Entrypoints.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public static CCharPointer entrypoint_vcmlToFiniteVolumeInput(
9292
}
9393
// return result as a json string
9494
String json = returnValue.toJson();
95-
logger.info("Returning from vcmlToFiniteVolumeInput: {}", json);
95+
logger.info("Returning from vcmlToFiniteVolumeInput: " + json);
9696
return createString(json);
9797
}
9898

@@ -120,7 +120,7 @@ public static CCharPointer entrypoint_sbmlToFiniteVolumeInput(
120120
}
121121
// return result as a json string
122122
String json = returnValue.toJson();
123-
logger.info("Returning from sbmlToFiniteVolumeInput: {}", json);
123+
logger.info("Returning from sbmlToFiniteVolumeInput: " + json);
124124
return createString(json);
125125
}
126126

@@ -180,7 +180,7 @@ public static void main(String[] args) {
180180
// read sbml_file and create a string object
181181
try (FileInputStream fis = new FileInputStream(sbml_file)) {
182182
byte[] data = fis.readAllBytes();
183-
logger.info("Read {} bytes from {}", data.length, sbml_file);
183+
logger.info("Read " + data.length + " bytes from " + sbml_file);
184184
String sbml_str = new String(data);
185185
sbmlToFiniteVolumeInput(sbml_str, new File(args[1]));
186186
}

0 commit comments

Comments
 (0)