diff --git a/src/tor.js b/src/tor.js index c8b2b835..d6c78d28 100644 --- a/src/tor.js +++ b/src/tor.js @@ -52,7 +52,9 @@ function getTorIPs(cb) { fs.writeFile(destination, ips.join("\n"), error => { - LOGGER.error("Failed to write to %s: %s", destination, error); + if (error) { + LOGGER.error("Failed to write to %s: %s", destination, error); + } }); return; }