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

Logging? #17

Open
youroff opened this issue Jul 21, 2017 · 3 comments
Open

Logging? #17

youroff opened this issue Jul 21, 2017 · 3 comments

Comments

@youroff
Copy link

youroff commented Jul 21, 2017

Would be nice to have any logging. I'm trying to pass unrecognized routes to the legacy backend, and so far it only spits out 502 and never tries to hit that backend:
forward "/", ReverseProxy, upstream: ["localhost:3000"]
Also, if I pass upstream with scheme, as "http://localhost:3000", it throws:

** (exit) an exception was raised:
    ** (ArgumentError) argument error
        :erlang.list_to_integer([])
        (hackney) /Users/youroff/projects/autocloud/auto_cloud/deps/hackney/src/hackney_url.erl:204: :hackney_url.parse_netloc/2
        (hackney) /Users/youroff/projects/autocloud/auto_cloud/deps/hackney/src/hackney.erl:331: :hackney.request/5
        (httpoison) lib/httpoison/base.ex:432: HTTPoison.Base.request/9
        lib/reverse_proxy/runner.ex:24: ReverseProxy.Runner.retreive/3

Any ideas how to fix this?

@youroff
Copy link
Author

youroff commented Jul 21, 2017

Seems like it's the obscure problem with Hackney :( Though Logging would be still appreciated.

@slogsdon
Copy link
Owner

slogsdon commented Aug 3, 2017

Sorry for the delay @youroff! I agree on the logging. I'll work on getting something in the library for tracing, but as always, PRs are welcome.

@youroff
Copy link
Author

youroff commented Aug 3, 2017

Thanks for the reply! Sure, I'll come up with PR bit later ;)

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

2 participants