mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-03-03 02:00:36 +00:00
Support filelog watching in Windows.
This commit is contained in:
@@ -17,13 +17,13 @@ limitations under the License.
|
||||
package filelog
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"github.com/hpcloud/tail"
|
||||
)
|
||||
|
||||
// getLogReader returns log reader for filelog log. Note that getLogReader doesn't look back
|
||||
// to the rolled out logs.
|
||||
func getLogReader(path string) (io.ReadCloser, error) {
|
||||
// TODO: Support this on windows.
|
||||
return nil, fmt.Errorf("not supported on windows.")
|
||||
return tail.OpenFile(path)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user