Adding more trace logging during the loading of the plugins

This commit is contained in:
Nanne Baars
2016-11-15 18:34:52 +01:00
parent 640e3ffb4e
commit dbcd5cce3a
6 changed files with 32 additions and 8 deletions

View File

@ -84,7 +84,7 @@ public class UserTracker {
@SneakyThrows
public void load() {
File file = new File(webgoatHome, user);
File file = new File(webgoatHome, user + ".progress");
if (file.exists() && file.isFile()) {
this.storage = (Map<String, LessonTracker>) SerializationUtils.deserialize(FileCopyUtils.copyToByteArray(file));
}
@ -92,7 +92,7 @@ public class UserTracker {
@SneakyThrows
private void save() {
File file = new File(webgoatHome, user);
File file = new File(webgoatHome, user + ".progress");
FileCopyUtils.copy(SerializationUtils.serialize(this.storage), file);
}