mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-16 15:18:58 +00:00
Redirect STDERR to error log (#709)
* Redirect STDERR to error log * Add dup2.go * Redirect error log to log file --------- Co-authored-by: 杨赫然 <heran.yang@seafile.com>
This commit is contained in:
11
notification-server/dup2.go
Normal file
11
notification-server/dup2.go
Normal file
@@ -0,0 +1,11 @@
|
||||
//go:build !(linux && arm64)
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func Dup(from, to int) error {
|
||||
return syscall.Dup2(from, to)
|
||||
}
|
Reference in New Issue
Block a user