mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2024-12-25 14:25:35 +00:00
More exception outputting.
This commit is contained in:
parent
d9667211a4
commit
e0668926c9
@ -176,6 +176,7 @@ public class CommandLineController {
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
logger.error("Exception caught!", e);
|
||||
} finally {
|
||||
if (CommandLineOptions.cmd_daemon) {
|
||||
handler.setUser(user, client);
|
||||
|
@ -45,7 +45,7 @@ import org.slf4j.LoggerFactory;
|
||||
public class HTMLExporter {
|
||||
private static Logger logger = LoggerFactory.getLogger(HTMLExporter.class);
|
||||
|
||||
public void export(UserManager user) {
|
||||
public void export(UserManager user) throws IOException {
|
||||
try {
|
||||
Database db = new Database(user, null);
|
||||
|
||||
@ -147,7 +147,8 @@ public class HTMLExporter {
|
||||
logger.debug("Done exporting.");
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
throw new RuntimeException("Exception above!");
|
||||
logger.error("Caught an exception!", e);
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user