Skip to content

Commit fe7c915

Browse files
author
anahan
committed
Add ErrorLog to phpfpm.Config parser
1 parent e06ae42 commit fe7c915

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

pkg/phpfpm/config.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ import (
1212
)
1313

1414
type Config struct {
15-
Include string
16-
Pools []Pool
15+
Include string
16+
ErrorLog string
17+
Pools []Pool
1718
}
1819

1920
type Pool struct {
@@ -78,6 +79,10 @@ func ParseConfig(fpmConfigPath string) (Config, error) {
7879
return c, err
7980
}
8081

82+
if key, err := global.GetKey("error_log"); err == nil {
83+
c.ErrorLog = key.String()
84+
}
85+
8186
if include, err := global.GetKey("include"); err == nil {
8287
c.Include = include.Value()
8388

0 commit comments

Comments
 (0)