Browse Source

fix error being thrown if log file doesn't exist yet

main
forest 1 month ago
parent
commit
c563be03d3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      child-process-service/daemon_log_manager.go

+ 1
- 1
child-process-service/daemon_log_manager.go View File

@ -96,7 +96,7 @@ func (m DaemonLogManager) Subscribe(subscriber func(LogEntity) bool) {
}
func (m DaemonLogManager) Iterator() (*LogIterator, error) {
file, err := os.Open(m.Logger.Filename)
file, err := os.OpenFile(m.Logger.Filename, os.O_CREATE|os.O_RDONLY, 0755)
if err != nil {
return nil, err
}


Loading…
Cancel
Save