Merge pull request #79 from zcash-hackworks/create_log_file
Add initial conditional to create log file if it does not exist
This commit is contained in:
commit
4b6b77336a
|
@ -123,6 +123,9 @@ func main() {
|
|||
}
|
||||
|
||||
for _, filename := range filesThatShouldExist {
|
||||
if !fileExists(opts.logPath) {
|
||||
os.OpenFile(opts.logPath, os.O_RDWR|os.O_CREATE|os.O_EXCL, 0666)
|
||||
}
|
||||
if (opts.veryInsecure && (filename == opts.tlsCertPath || filename == opts.tlsKeyPath)) {
|
||||
continue
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue