Skip to content

Fix #618: avoid configuring the root logger - #645

Merged
pitrou merged 4 commits into
dask:masterfrom
pitrou:logging_fix
Nov 14, 2016
Merged

pitrou merged 4 commits into
dask:masterfrom
pitrou:logging_fix

Conversation

@pitrou

@pitrou pitrou commented Nov 9, 2016

Copy link
Copy Markdown
Member

No description provided.

@pitrou

pitrou commented Nov 9, 2016

Copy link
Copy Markdown
Member Author

@dhirschfeld, does it fix your issue?

@dhirschfeld

Copy link
Copy Markdown
Contributor

Just deleted my comment - I think that's actually a config error on my part...

@dhirschfeld

dhirschfeld commented Nov 10, 2016 •

Copy link
Copy Markdown
Contributor

Ok, have done some testing and this PR doesn't seem to work for me.

I'm still seeing duplicate logs of the form

2016-11-10 12:47:37,752 - INFO - GFIMonitor('DataFeeds/MarketCurves') - Downloaded Market_Curve_20161103163604.csv
INFO:TaskRunner:Downloaded Market_Curve_20161103163604.csv

where the latter message was sent by (I'm assuming) a logger configured in distributed.

My PR #623 doesn't emit the duplicate messages but also doesn't pass the tests :/

@pitrou

pitrou commented Nov 10, 2016

Copy link
Copy Markdown
Member Author

@dhirschfeld, I cannot reproduce your issue with duplicate log lines. Can you produce a simple script reproducing the issue?

@pitrou

pitrou commented Nov 10, 2016

Copy link
Copy Markdown
Member Author

Also, which Python version do you use and what are the contents of your ~/.dask/config.yaml file?

@pitrou

pitrou commented Nov 10, 2016

Copy link
Copy Markdown
Member Author

By the way, INFO:TaskRunner:Downloaded Market_Curve_20161103163604.csv does not correspond to the logging format configured by Distributed.

@dhirschfeld

Copy link
Copy Markdown
Contributor

Thanks, it must be something wrong with my setup then. I'll look into it some more and see if I can create a repro

@pitrou

pitrou commented Nov 10, 2016

Copy link
Copy Markdown
Member Author

You may want to set the propagate attribute to False if you added a handler on a non-root logger.

@dhirschfeld

Copy link
Copy Markdown
Contributor

I'll check that also.

For ref, I'm using py35/win64 and my config.yml is:

logging: 
  distributed: info
  distributed.executor: warning
  bokeh: critical

compression: auto

# Scheduler options
bandwidth: 100000000    # 100 MB/s estimated worker-worker bandwidth
allowed-failures: 3     # number of retries before a task is considered bad
pdb-on-err: False       # enter debug mode on scheduling error
transition-log-length: 100000 

@dhirschfeld

Copy link
Copy Markdown
Contributor

To avoid further conflicts I'm happy for this to be merged as an improvement over master. I haven't gotten to the bottom of my own problem but can open another issue/PR should I find that it is a distributed issue rather than one of my own making :/

@pitrou
pitrou merged commit 76d7b21 into dask:master Nov 14, 2016
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

Successfully merging this pull request may close these issues.

2 participants