1
0
mirror of https://github.com/fabianonline/telegram_backup.git synced 2024-11-23 01:06:17 +00:00

More exception outputting.

This commit is contained in:
Fabian Schlenz 2017-02-17 06:34:20 +01:00
parent d9667211a4
commit e0668926c9
2 changed files with 4 additions and 2 deletions

View File

@ -176,6 +176,7 @@ public class CommandLineController {
} }
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
logger.error("Exception caught!", e);
} finally { } finally {
if (CommandLineOptions.cmd_daemon) { if (CommandLineOptions.cmd_daemon) {
handler.setUser(user, client); handler.setUser(user, client);

View File

@ -45,7 +45,7 @@ import org.slf4j.LoggerFactory;
public class HTMLExporter { public class HTMLExporter {
private static Logger logger = LoggerFactory.getLogger(HTMLExporter.class); private static Logger logger = LoggerFactory.getLogger(HTMLExporter.class);
public void export(UserManager user) { public void export(UserManager user) throws IOException {
try { try {
Database db = new Database(user, null); Database db = new Database(user, null);
@ -147,7 +147,8 @@ public class HTMLExporter {
logger.debug("Done exporting."); logger.debug("Done exporting.");
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
throw new RuntimeException("Exception above!"); logger.error("Caught an exception!", e);
throw e;
} }
} }