2015-02-27 17:51:17 +01:00
|
|
|
// Log the panic to the log file - for oses which can't do this
|
|
|
|
|
2021-09-09 14:25:25 +02:00
|
|
|
//go: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"
|
|
|
|
|
2019-07-28 19:47:38 +02:00
|
|
|
"github.com/rclone/rclone/fs"
|
2018-01-12 17:30:54 +01:00
|
|
|
)
|
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
|
|
|
}
|