Skip to content

Commit

Permalink
Fix set-log-attributes asadmin command
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Pinchuk <alexander.v.pinchuk@gmail.com>
  • Loading branch information
avpinchuk committed Mar 15, 2023
1 parent 7aa34dd commit 4a249b5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,10 @@ private File getLoggingPropertiesFile() {
}

private File getLoggingPropertiesFile(String target) {
String pathForLoggingFile = loggingConfigDir.getAbsolutePath() + File.separator + target;
String pathForLoggingFile = loggingConfigDir.getAbsolutePath();
if (target != null) {
pathForLoggingFile += File.separator + target;
}
return new File(pathForLoggingFile, ServerEnvironmentImpl.kLoggingPropertiesFileName);
}

Expand Down

0 comments on commit 4a249b5

Please sign in to comment.