Fix so that the logger only returns one global logger, allowing logging#149
Fix so that the logger only returns one global logger, allowing logging#149koldinger wants to merge 1 commit intoicloud-photos-downloader:masterfrom
Conversation
settings to be used globally.
|
How did you get it working? I have an issue with albums, #150 |
|
Can't imagine that this is related. This merely uses a common logging object, so that the settings get reflected everywhere, rather than a separate logging object for each component. |
|
I understand, just asking how you got your build to work, since the master is broken |
|
I just ran it. Seems to be fine. |
|
Hi @koldinger, thanks very much for the PR, and sorry for the delay! I was just wondering if you could please take a look at the pylint errors in the Travis CI build? (If you are still interested) |
|
I like using a singleton for logging, so I understand the intention. Anyways pylint has a good point not to use globals, etc. But to solve this we should restructure the program in a more object-oriented way (to be a class), so that we could just put the logger into an instance variable. But this is quite a big change... |
|
Thanks again for your pull request. We added a different solution with #194 |
settings to be used globally, and eliminating the overlogging when a log-level is specified.