Browse Source

better logging handling

0xdcarns 3 years ago
parent
commit
ec90f4dc8e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      logger/logger.go

+ 2 - 0
logger/logger.go

@@ -50,6 +50,8 @@ func Dump() string {
 	if program != "netmaker" {
 	if program != "netmaker" {
 		return ""
 		return ""
 	}
 	}
+	mu.Lock()
+	defer mu.Unlock()
 	var dumpString = ""
 	var dumpString = ""
 	type keyVal struct {
 	type keyVal struct {
 		Key   string
 		Key   string