Skip to content

net/http: some left out logging in net/http/cookie.go #10454

Closed
@omerkirk

Description

@omerkirk

There are log statements that cannot be suppressed in net/http/cookie.go file. These statements create too much log when we redirect output to log file. Is there anyway to connect these to a parameter like isDebug.
sanitizeOrWarn function

 332            log.Printf("net/http: invalid byte %q in %s; dropping invalid bytes", v[i], fieldName)

String() function

 153            } else {
 154                log.Printf("net/http: invalid Cookie.Domain %q; dropping domain attribute",
 155                    c.Domain)
 156            }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions