MCPcopy Index your code
hub / github.com/tailscale/tailscale / logOptions

Method logOptions

tsweb/tsweb.go:354–365  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

352}
353
354func (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
367func (opts LogOptions) withDefaults() LogOptions {
368 if opts.Logf == nil {

Callers 1

StdHandlerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected