Skip to content

Commit

Permalink
Use LOG.error(msg, e)
Browse files Browse the repository at this point in the history
  • Loading branch information
Prasad Wagle committed Jun 1, 2016
1 parent cedf8f5 commit ab4a0f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private void loadFromFile() {
CredentialsInfoSaving info = gson.fromJson(json, CredentialsInfoSaving.class);
this.credentialsMap = info.credentialsMap;
} catch (IOException e) {
LOG.error("Error loading credentials file");
LOG.error("Error loading credentials file", e);
e.printStackTrace();
}
}
Expand All @@ -114,9 +114,8 @@ private void saveToFile() throws IOException {
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);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ public NotebookAuthorization(ZeppelinConfiguration conf) {
try {
loadFromFile();
} catch (IOException e) {
LOG.error("Error loading NotebookAuthorization");
e.printStackTrace();
LOG.error("Error loading NotebookAuthorization", e);
}
}

Expand Down

0 comments on commit ab4a0f8

Please sign in to comment.