Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugin/log: remove ErrorFunc #2716

Merged
merged 1 commit into from
Mar 25, 2019
Merged

plugin/log: remove ErrorFunc #2716

merged 1 commit into from
Mar 25, 2019

Conversation

miekg
Copy link
Member

@miekg miekg commented Mar 24, 2019

The server handles this case no need to also do it in the log plugin.

Means DefaultErrorFunc can be private to the dnsserver and is now
renamed to just errorFunc

Fixes: #2715

The server handles this case no need to also do it in the log plugin.

Means DefaultErrorFunc can be private to the dnsserver and is now
renamed to just errorFunc

Fixes: #2715

Signed-off-by: Miek Gieben <miek@miek.nl>
@corbot corbot bot requested a review from dilyevsky March 24, 2019 15:40
@corbot
Copy link

corbot bot commented Mar 24, 2019

Thank you for your contribution. I've just checked the OWNERS files to find a suitable reviewer. This search was successful and I've asked dilyevsky (via /OWNERS) for a review.

If you have questions or suggestions for this bot, please file an issue against the miekg/dreck repository.

The bot understands the commands that are listed here.

@codecov-io
Copy link

Codecov Report

Merging #2716 into master will decrease coverage by 0.03%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #2716      +/-   ##
=========================================
- Coverage   55.13%   55.1%   -0.04%     
=========================================
  Files         199     199              
  Lines       10115   10106       -9     
=========================================
- Hits         5577    5569       -8     
  Misses       4121    4121              
+ Partials      417     416       -1
Impacted Files Coverage Δ
plugin/log/log.go 100% <ø> (+11.53%) ⬆️
core/dnsserver/server.go 9.33% <0%> (ø) ⬆️
plugin/log/setup.go 88.05% <0%> (ø) ⬆️
plugin/file/reload.go 71.05% <0%> (-5.27%) ⬇️

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 f08f7e2...e9b9a91. Read the comment docs.

miekg added a commit that referenced this pull request Mar 24, 2019
When there is an error use a different function to report the metrics,
in case the plugin chain handled the request the metrics are already
reported.

Builds up on #2716
Fixes: #2717

Signed-off-by: Miek Gieben <miek@miek.nl>
Copy link
Member

@yongtang yongtang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yongtang yongtang merged commit 45624a0 into master Mar 25, 2019
@corbot corbot bot deleted the logwrite branch March 25, 2019 03:36
Jason-ZW pushed a commit to rancher/coredns that referenced this pull request Apr 17, 2019
The server handles this case no need to also do it in the log plugin.

Means DefaultErrorFunc can be private to the dnsserver and is now
renamed to just errorFunc

Fixes: coredns#2715

Signed-off-by: Miek Gieben <miek@miek.nl>
dna2github pushed a commit to dna2fork/coredns that referenced this pull request Jul 19, 2019
The server handles this case no need to also do it in the log plugin.

Means DefaultErrorFunc can be private to the dnsserver and is now
renamed to just errorFunc

Fixes: coredns#2715

Signed-off-by: Miek Gieben <miek@miek.nl>
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.

3 participants