mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-09 23:37:06 +00:00
The log monitor was using bufio.Scanner which doesn't automatically follow file growth like 'tail -f'. When scanner reached EOF, it would stay at EOF even as new lines were written to the log file. This caused GPU detection to fail because the GPU-related log lines were written after the scanner reached EOF, so they were never processed. Solution: Switch to bufio.Reader.ReadString() which properly handles reading from a growing file by returning io.EOF when no data is available, allowing us to wait and retry while keeping the file position.