2015-02-27 17:51:17 +01:00
|
|
|
// Log the panic to the log file - for oses which can't do this
|
|
|
|
|
2016-02-24 22:54:21 +01:00
|
|
|
// +build !windows,!darwin,!dragonfly,!freebsd,!linux,!nacl,!netbsd,!openbsd
|
2015-02-27 17:51:17 +01:00
|
|
|
|
2018-01-12 17:30:54 +01:00
|
|
|
package log
|
2015-02-27 17:51:17 +01:00
|
|
|
|
2018-01-12 17:30:54 +01:00
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
|
|
|
|
"github.com/ncw/rclone/fs"
|
|
|
|
)
|
2015-02-27 17:51:17 +01:00
|
|
|
|
|
|
|
// redirectStderr to the file passed in
|
|
|
|
func redirectStderr(f *os.File) {
|
2018-01-12 17:30:54 +01:00
|
|
|
fs.Errorf(nil, "Can't redirect stderr to file")
|
2015-02-27 17:51:17 +01:00
|
|
|
}
|