github.com/10XDev/rclone@v1.52.3-0.20200626220027-16af9ab76b2a/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/rclone/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  }