diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/session/MemorySessionStorage.java b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/session/MemorySessionStorage.java index 86043483..0c636753 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/session/MemorySessionStorage.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/session/MemorySessionStorage.java @@ -102,8 +102,8 @@ public void dumpSessionsData() { Path path = Paths.get(dumpFile); try (Writer writer = IOHelper.newWriter(path)) { Launcher.gsonManager.gson.toJson(dumpedData, writer); - } catch (IOException e) { - logger.error(e); + } catch (Throwable e) { + logger.error("Sessions can't be saved", e); } } @@ -114,8 +114,8 @@ public void loadSessionsData() { DumpedData data = Launcher.gsonManager.gson.fromJson(reader, DumpedData.class); clientSet.putAll(data.clientSet); uuidIndex.putAll(data.uuidIndex); - } catch (IOException e) { - logger.error(e); + } catch (Throwable e) { + logger.error("Sessions can't be loaded", e); } }