2015-02-28 03:51:17 +11:00
|
|
|
// Log the panic to the log file - for oses which can't do this
|
|
|
|
|
2016-02-25 08:54:21 +11:00
|
|
|
// +build !windows,!darwin,!dragonfly,!freebsd,!linux,!nacl,!netbsd,!openbsd
|
2015-02-28 03:51:17 +11:00
|
|
|
|
2018-01-13 03:30:54 +11:00
|
|
|
package log
|
2015-02-28 03:51:17 +11:00
|
|
|
|
2018-01-13 03:30:54 +11:00
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
|
2019-07-29 03:47:38 +10:00
|
|
|
"github.com/rclone/rclone/fs"
|
2018-01-13 03:30:54 +11:00
|
|
|
)
|
2015-02-28 03:51:17 +11:00
|
|
|
|
|
|
|
// redirectStderr to the file passed in
|
|
|
|
func redirectStderr(f *os.File) {
|
2018-01-13 03:30:54 +11:00
|
|
|
fs.Errorf(nil, "Can't redirect stderr to file")
|
2015-02-28 03:51:17 +11:00
|
|
|
}
|