Skip to content

Commit

Permalink
Set stdout to output
Browse files Browse the repository at this point in the history
  • Loading branch information
杨赫然 committed Oct 18, 2024
1 parent acb315a commit d370f27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fileserver/fileserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,9 @@ func main() {
loadSeafileDB()
option.LoadFileServerOptions(centralDir)

if logFile == "" {
if logToStdout {
// Use default output (StdOut)
} else if logFile == "" {
absLogFile = filepath.Join(absDataDir, "fileserver.log")
fp, err := os.OpenFile(absLogFile, os.O_WRONLY|os.O_APPEND|os.O_CREATE, 0644)
if err != nil {
Expand Down

0 comments on commit d370f27

Please sign in to comment.