Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Merge 73a9319 into 713a729
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugodby committed Dec 14, 2017
2 parents 713a729 + 73a9319 commit 5e7d40f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/storjshare-logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ utils.connectToDaemon(port, function(rpc, sock) {
}

try {
if (!fs.statSync(logFileDir).isDirectory()) {
logFileDir = path.dirname(logFileDir);
}
} catch (err) {
fs.statSync(logFileDir).isDirectory();
logFileDir = path.dirname(logFileDir);
} catch (err) {
console.error(`\n invalid node id for ${storjshare_logs.nodeid}`);
return sock.end();
}

const fslogger = new FsLogger(logFileDir, storjshare_logs.nodeid);
Expand Down

0 comments on commit 5e7d40f

Please sign in to comment.