Thanks to visit codestin.com
Credit goes to github.com

Skip to content

logging: fixed issue with logging from plugins using logging module#1720

Merged
gravyboat merged 1 commit into
streamlink:masterfrom
beardypig:plugin-logging-fix
Jun 1, 2018
Merged

logging: fixed issue with logging from plugins using logging module#1720
gravyboat merged 1 commit into
streamlink:masterfrom
beardypig:plugin-logging-fix

Conversation

@beardypig

Copy link
Copy Markdown
Member

Previously plugins would be loaded with the module name set to the plugin name, eg. twitch, this PR changes that so that plugins are loaded within the streamlink.plugin hierarchy.
I also tweaked the way that the plugin load setup is called (I am slowly chipping away at the global variables). There is also now a debugging log message when a plugin is overridden by an external plugin file - this should help us when debugging issues with plugins, in case the user is using a non-standard plugin version.

@beardypig beardypig force-pushed the plugin-logging-fix branch from e782898 to 9400da9 Compare May 31, 2018 22:35
@beardypig beardypig force-pushed the plugin-logging-fix branch from 9400da9 to d652bea Compare May 31, 2018 22:36
@codecov

codecov Bot commented May 31, 2018

Copy link
Copy Markdown

Codecov Report

Merging #1720 into master will increase coverage by 0.18%.
The diff coverage is 87.5%.

@@            Coverage Diff             @@
##           master    #1720      +/-   ##
==========================================
+ Coverage   36.95%   37.14%   +0.18%     
==========================================
  Files         237      238       +1     
  Lines       13784    13826      +42     
==========================================
+ Hits         5094     5135      +41     
- Misses       8690     8691       +1

@gravyboat

Copy link
Copy Markdown
Member

This is a pretty nice improvement, good idea @beardypig.

@gravyboat gravyboat merged commit d653d56 into streamlink:master Jun 1, 2018
mkbloke pushed a commit to mkbloke/streamlink that referenced this pull request Aug 18, 2020
logging: fixed issue with logging from plugins using logging module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants