Skip to content

Introduce logger pattern so you can control where error logs go #81

Open

Description

@aviat

@SamSaffron I see here that some errors are echoed to stderr.
https://github.com/discourse/mini_racer/blob/47329ae9c9a1dc99ab38fe2d701576a2864400d7/lib/mini_racer.rb#L269-L272
Though, I cannot see any case where an exception could led here.
Could you please explain what is the purpose of this?

Activity

  1. SamSaffron commented on Mar 15, 2018

    @SamSaffron
    Collaborator

    The reason here is that I never want to "eat" errors without warning, so we got to log it somewhere.

  2. SamSaffron commented on Mar 15, 2018

    @SamSaffron
    Collaborator

    Open to introducing a logger pattern though which defaults to $stderr then you can set it to /dev/null if you wish.

  3. SamSaffron commented on Mar 21, 2018

    @SamSaffron
    Collaborator

    Going to re-title this and make it PR-Welcome

  4. changed the title [-]Errors are echoed to stderr[/-] [+]Introduce logger pattern so you can control where error logs go[/+] on Mar 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions