Skip to content
This repository has been archived by the owner on Apr 2, 2018. It is now read-only.

Commit

Permalink
skip unreadable log dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
vito committed Jan 25, 2018
1 parent 6c36809 commit 7fe5522
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion NOTICE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2014-2017 Alex Suraci, Chris Brown, and Pivotal Software, Inc.
Copyright 2014-2018 Alex Suraci, Chris Brown, and Pivotal Software, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
Expand Down
3 changes: 2 additions & 1 deletion file_watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ func (f *fileWatcher) findLogsToWatch(tag string, filePath string, file os.FileI

dirContents, err := ioutil.ReadDir(filePath)
if err != nil {
f.logger.Fatalf("could not list files in log dir %s: %s\n", tag, err)
f.logger.Printf("skipping log dir '%s' (could not list files): %s\n", tag, err)
return
}

for _, content := range dirContents {
Expand Down

0 comments on commit 7fe5522

Please sign in to comment.