Skip to content

Commit

Permalink
Merge pull request #39 from vansante/log-level
Browse files Browse the repository at this point in the history
Change loglevel when context expires
  • Loading branch information
vansante authored Sep 25, 2023
2 parents 5b0c429 + 789c659 commit 25008c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func (fs *FileServer) ServeFileReader(ctx context.Context, fileID FileID, file i

fs.mu.Lock()
if fs.closeReader(fileID) {
fs.logger.Info("networkfile.FileServer.ServeFileReader: Context for file reader expired", "fileID", fileID)
fs.logger.Debug("networkfile.FileServer.ServeFileReader: Context for file reader expired", "fileID", fileID)
}
fs.mu.Unlock()
}()
Expand Down Expand Up @@ -223,7 +223,7 @@ func (fs *FileServer) ServeFileWriter(ctx context.Context, fileID FileID, file i

fs.mu.Lock()
if fs.closeWriter(fileID) {
fs.logger.Info("networkfile.FileServer.ServeFileWriter: Context for file writer expired", "fileID", fileID)
fs.logger.Debug("networkfile.FileServer.ServeFileWriter: Context for file writer expired", "fileID", fileID)
}
fs.mu.Unlock()
}()
Expand Down

0 comments on commit 25008c8

Please sign in to comment.