diff options
Diffstat (limited to 'pkg/app/logging_windows.go')
-rw-r--r-- | pkg/app/logging_windows.go | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/pkg/app/logging_windows.go b/pkg/app/logging_windows.go index 8c3e937a1..affd5a018 100644 --- a/pkg/app/logging_windows.go +++ b/pkg/app/logging_windows.go @@ -4,38 +4,14 @@ package app import ( "bufio" - "fmt" "github.com/aybabtme/humanlog" - "github.com/jesseduffield/lazygit/pkg/config" "log" "os" "strings" "time" ) -func TailLogs() { - logFilePath, err := config.LogPath() - if err != nil { - log.Fatal(err) - } - - fmt.Printf("Tailing log file %s\n\n", logFilePath) - - opts := humanlog.DefaultOptions - opts.Truncates = false - - _, err = os.Stat(logFilePath) - if err != nil { - if os.IsNotExist(err) { - log.Fatal("Log file does not exist. Run `lazygit --debug` first to create the log file") - } - log.Fatal(err) - } - - TailLogsNative(logFilePath, opts) -} - -func TailLogsNative(logFilePath string, opts *humanlog.HandlerOptions) { +func TailLogsForPlatform(logFilePath string, opts *humanlog.HandlerOptions) { var lastModified int64 = 0 var lastOffset int64 = 0 for { |