()
| 352 | } |
| 353 | |
| 354 | func (o HandlerOptions) logOptions() LogOptions { |
| 355 | return LogOptions{ |
| 356 | QuietLoggingIfSuccessful: o.QuietLoggingIfSuccessful, |
| 357 | Logf: o.Logf, |
| 358 | Now: o.Now, |
| 359 | StatusCodeCounters: o.StatusCodeCounters, |
| 360 | StatusCodeCountersFull: o.StatusCodeCountersFull, |
| 361 | BucketedStats: o.BucketedStats, |
| 362 | OnStart: o.OnStart, |
| 363 | OnCompletion: o.OnCompletion, |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | func (opts LogOptions) withDefaults() LogOptions { |
| 368 | if opts.Logf == nil { |