Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log filtering "no virtual host available" #33

Open
mmatczuk opened this issue Jul 27, 2016 · 0 comments
Open

Log filtering "no virtual host available" #33

mmatczuk opened this issue Jul 27, 2016 · 0 comments

Comments

@mmatczuk
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant