Skip to content

Commit

Permalink
Merge pull request Azure#414 from ataylor284/fix-logging-path2
Browse files Browse the repository at this point in the history
Fix logging error when java.io.tmpdir has no trailing separator
  • Loading branch information
rickle-msft authored Nov 30, 2018
2 parents 13abebb + da2302c commit 561936b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public final class LoggingFactory implements RequestPolicyFactory {
forceLogger.setLevel(Level.WARNING);

// Create the logs directory if it doesn't exist.
File logDir = new File(System.getProperty("java.io.tmpdir") + "AzureStorageJavaSDKLogs");
File logDir = new File(System.getProperty("java.io.tmpdir"), "AzureStorageJavaSDKLogs");
if (!logDir.exists()) {
if (!logDir.mkdir()) {
throw new Exception("Could not create logs directory");
Expand Down

0 comments on commit 561936b

Please sign in to comment.