github.com/ncw/rclone@v1.48.1-0.20190724201158-a35aa1360e3e/fs/log/redirect_stderr.go (about)

     1  // Log the panic to the log file - for oses which can't do this
     2  
     3  // +build !windows,!darwin,!dragonfly,!freebsd,!linux,!nacl,!netbsd,!openbsd
     4  
     5  package log
     6  
     7  import (
     8  	"os"
     9  
    10  	"github.com/ncw/rclone/fs"
    11  )
    12  
    13  // redirectStderr to the file passed in
    14  func redirectStderr(f *os.File) {
    15  	fs.Errorf(nil, "Can't redirect stderr to file")
    16  }