Commit e42ead15ba63ced439a0b8d5798011538ddd5665

Authored by Marko Tikvić
1 parent 434e7da258
Exists in master

mutex initialization

Showing 1 changed file with 4 additions and 0 deletions   Show diff stats
... ... @@ -66,6 +66,8 @@ func Init(flags Option, splitSize int64) error {
66 66 fmt.Printf("logger: new: couldn't create event log file\n")
67 67 return err
68 68 }
  69 +
  70 + logger.muEv = &sync.Mutex{}
69 71 }
70 72  
71 73 // error file/dir
... ... @@ -85,6 +87,8 @@ func Init(flags Option, splitSize int64) error {
85 87 fmt.Printf("logger: new: couldn't create error log file\n")
86 88 return err
87 89 }
  90 +
  91 + logger.muEr = &sync.Mutex{}
88 92 }
89 93  
90 94 return nil
... ...