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
|
|
|
|
2016-08-04 23:18:56 +02:00
|
|
|
package cmd
|
2015-02-27 17:51:17 +01:00
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
2016-06-06 22:23:54 +02:00
|
|
|
|
|
|
|
"github.com/ncw/rclone/fs"
|
2015-02-27 17:51:17 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
// redirectStderr to the file passed in
|
|
|
|
func redirectStderr(f *os.File) {
|
2016-06-06 22:23:54 +02:00
|
|
|
fs.ErrorLog(nil, "Can't redirect stderr to file")
|
2015-02-27 17:51:17 +01:00
|
|
|
}
|