Skip to content

Local extras should override extras given in init#16

Merged
jobec merged 2 commits into
jobec:masterfrom
mcoolive:master
Feb 2, 2018
Merged

Local extras should override extras given in init#16
jobec merged 2 commits into
jobec:masterfrom
mcoolive:master

Conversation

@mcoolive

Copy link
Copy Markdown
Contributor

This PR is related to commit dcd32d1.
When an extra is given twice: in init and in a local call to logger, I think the local value should override the first one. My opinion.
Note: I really dislike my loop too :-). So you can discard my PR if you find a more elegant way to implement this override.

Signed-off-by: Cyril Martin c.martin@criteo.com

@codecov

codecov Bot commented Jan 31, 2018

Copy link
Copy Markdown

Codecov Report

Merging #16 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #16      +/-   ##
==========================================
+ Coverage   96.81%   96.83%   +0.01%     
==========================================
  Files           3        3              
  Lines         220      221       +1     
==========================================
+ Hits          213      214       +1     
  Misses          7        7
Impacted Files Coverage Δ
rfc5424logging/adapter.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update db566fa...e0b1e00. Read the comment docs.

Signed-off-by: Cyril Martin <c.martin@criteo.com>
@jobec

jobec commented Feb 2, 2018

Copy link
Copy Markdown
Owner

Indeed, the extra part of the message should overrule the one set on the adapter on initialization. Let's see how to fix this in the most elegant way...

@jobec jobec merged commit e31834e into jobec:master Feb 2, 2018
@jobec

jobec commented Feb 3, 2018

Copy link
Copy Markdown
Owner

Fixed in release v1.1.2

vphpersson pushed a commit to vphpersson/rfc5424-logging-handler that referenced this pull request Mar 23, 2026
Local extras should override extras given in init
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