Skip to content

Redirect in routes not handled by lograge #380

Description

@saurori

I noticed that calling redirect in routes causes log lines that are not handled by Lograge. For example:

Route:

get '/old-page', to: redirect('/new-page')

Log output:

Redirected to http://localhost:3000/new-page
Completed 301 Moved Permanently in 1ms

The README indicates redirect_to in controllers is hooked by lograge. Is it intentional that redirect in routes is not handled or is it possible for lograge to handle this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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