Skip to content

Commit

Permalink
Revert writing error logs to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
hweawer committed Jan 20, 2025
1 parent d2dec56 commit 8971b8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 63 deletions.
5 changes: 4 additions & 1 deletion nginx/nginx.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,10 @@ func Run(config Config, params map[string]interface{}, opts ...Option) error {
return fmt.Errorf("write src: %s", err)
}

stdout := os.Stdout
stdout, err := os.OpenFile(config.StdoutLogPath, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
if err != nil {
return fmt.Errorf("open stdout log: %s", err)
}

args := []string{config.Binary, "-g", "daemon off;", "-c", conf}
if config.Root {
Expand Down
62 changes: 0 additions & 62 deletions nginx/nginx_test.go

This file was deleted.

0 comments on commit 8971b8e

Please sign in to comment.