Skip to content

Commit

Permalink
change log output format
Browse files Browse the repository at this point in the history
  • Loading branch information
han committed Oct 17, 2024
1 parent f59fff7 commit a89fda1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void init(Formatter formatter, Map<String, String> properties) {
outWriter = new OutputStreamWriter(outputStream, StandardCharsets.UTF_8);
} catch (Exception e) {
throw new GravitinoRuntimeException(
String.format("Init audit log writer fail, filename is %s", fileName), e);
e, "Init audit log writer fail, filename is %s", fileName);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public Status status() {
@Override
public String toString() {
return String.format(
"[%s] %s %s %s %s",
"[%s] \"%s\" \"%s\" \"%s\" %s",
new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(timestamp),
user,
operation,
Expand Down

0 comments on commit a89fda1

Please sign in to comment.