diff options
| author | mo khan <mo@mokhan.ca> | 2025-03-27 11:47:58 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-03-27 11:47:58 -0600 |
| commit | 3faa19c3aeae15070f2e143b031daaddfe296735 (patch) | |
| tree | dc86e49908920c10479b9e9905c58c0c44e2cee6 /pkg/srv | |
| parent | b08580ff78708519f0594a62531cf6ce45559265 (diff) | |
feat: start to add structured logging
Diffstat (limited to 'pkg/srv')
| -rw-r--r-- | pkg/srv/srv.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/srv/srv.go b/pkg/srv/srv.go index a6261ef6..ccd02e0f 100644 --- a/pkg/srv/srv.go +++ b/pkg/srv/srv.go @@ -1,11 +1,11 @@ package srv import ( - "log" "net/http" "time" "gitlab.com/mokhax/spike/pkg/cfg" + xlog "gitlab.com/mokhax/spike/pkg/log" ) func New(c *cfg.Config) *http.Server { @@ -15,9 +15,9 @@ func New(c *cfg.Config) *http.Server { TLSConfig: c.TLS, ReadHeaderTimeout: 10 * time.Second, ReadTimeout: 30 * time.Second, - WriteTimeout: 2 * time.Minute, - IdleTimeout: 5 * time.Minute, - ErrorLog: log.Default(), + WriteTimeout: 30 * time.Second, + IdleTimeout: 30 * time.Second, + ErrorLog: xlog.Default, } } |
