Skip to content

distributed hijacks the logger #618

Closed

Description

@dhirschfeld

Simply importing the Client will muck with my logging setup - is it using the root logger?

Will try to add a repro in the morning...

Activity

  1. mrocklin commented on Nov 2, 2016

    @mrocklin
    Member

    Hrm, we do do this:

    logging.basicConfig(format='%(name)s - %(levelname)s - %(message)s',
                        level=logging.INFO)

    Presumably we should be doing this on logging.getLogger('distributed') instead?

  2. dhirschfeld commented on Nov 2, 2016

    @dhirschfeld
    ContributorAuthor

    Yes, I think so. If you point out the line I can monkey-patch my local version and report back (tomorrow)

  3. mrocklin commented on Nov 2, 2016

    @mrocklin
    Member

    distributed/utils.py around 362

    On Wed, Nov 2, 2016 at 8:51 AM, Dave Hirschfeld [email protected]
    wrote:

    Yes, I think so. If you point out the line I can monkey-patch my local
    version and report back (tomorrow)

    —
    You are receiving this because you commented.
    Reply to this email directly, view it on GitHub
    #618 (comment),
    or mute the thread
    https://github.com/notifications/unsubscribe-auth/AASszJS8vsS5Ej2St9_bRCHNDQoS6Gakks5q6IdYgaJpZM4KnMgE
    .

  4. dhirschfeld commented on Nov 2, 2016

    @dhirschfeld
    ContributorAuthor

    Cheers, will let you know if that fixes it for me...

  5. dhirschfeld commented on Nov 2, 2016

    @dhirschfeld
    ContributorAuthor

    image
    ...so it looks like it mucks with the root logger. I Am Not A Logging Expert but I'm not sure that a good thing for a library to do. Quite likely I should be doing something to protect my logging from another application calling basicConfig.

    In any case PR #623 seems to fix the issue for me...

  6. added 2 commits that reference this issue on Nov 9, 2016
    d76427b
    08c6c67
  7. added a commit that references this issue on Nov 14, 2016
    76d7b21
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions