mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-21 06:36:19 +00:00
create registry.log if not there.
This commit is contained in:
+1
-1
@@ -276,7 +276,7 @@ func ListProcesses() (*ResponseListProcesses, error) {
|
||||
// Another barak instance registering its external
|
||||
// address to a remote barak.
|
||||
func Register(w http.ResponseWriter, req *http.Request) {
|
||||
registry, err := os.OpenFile(barak.rootDir+"/registry.log", os.O_RDWR|os.O_APPEND, 0x600)
|
||||
registry, err := os.OpenFile(barak.rootDir+"/registry.log", os.O_RDWR|os.O_APPEND|os.O_CREATE, 0x600)
|
||||
if err != nil {
|
||||
http.Error(w, "Could not open registry file. Please contact the administrator", 500)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user