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