Skip to content

Log filtering "no virtual host available" #33

Open
@mmatczuk

Description

@mmatczuk

https://github.com/koding/tunnel/blob/master/server.go#L161

if !strings.Contains(err.Error(), "no virtual host available") { // this one is outputted too much, unnecessarily
    s.log.Error("remote %s (%s): %s", r.RemoteAddr, r.RequestURI, err)
}

Such filtering could be moved to logging package for grater flexibility.

Also logging could have a filter that would print this log every 100 or so occurrences so that you can see when system is flooded with those logs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions