Use LOG.error(msg, e)

This commit is contained in:
Prasad Wagle 2016-05-24 16:01:19 -07:00
parent c628099cb9
commit 62b64a009e
2 changed files with 3 additions and 5 deletions

View file

@ -114,9 +114,8 @@ public class Credentials {
out.append(jsonString);
out.close();
fos.close();
} catch (IOException e) {
LOG.error("Error saving credentials file");
e.printStackTrace();
} catch (IOException e) {
LOG.error("Error saving credentials file", e);
}
}

View file

@ -49,8 +49,7 @@ public class NotebookAuthorization {
try {
loadFromFile();
} catch (IOException e) {
LOG.error("Error loading NotebookAuthorization");
e.printStackTrace();
LOG.error("Error loading NotebookAuthorization", e);
}
}