Skip to content

Logging? #17

@youroff

Description

@youroff

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions