Skip to content

[18.03 backport] Avoid predefined error log, and Test if error is nil before to log it#2722

Closed
thaJeztah wants to merge 2 commits into
moby:bump_v18.03from
thaJeztah:18.03-backport-2719-fix-error-message-logging
Closed

[18.03 backport] Avoid predefined error log, and Test if error is nil before to log it#2722
thaJeztah wants to merge 2 commits into
moby:bump_v18.03from
thaJeztah:18.03-backport-2719-fix-error-message-logging

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

Backport of #2561 and #2720 for the bump_v18.03 branch

git checkout -b 18.03-backport-2719-fix-error-message-logging upstream/bump_v18.03
git cherry-pick -s -S -x f6e6e694ed86f6ca470bf67112722eb5ade17bf5
git cherry-pick -s -S -x 99a0f5842bdd05e50de0a5fd386202a8b34220f4
git push -u origin

cherry-pick was clean; no conflicts

@thaJeztah
Copy link
Copy Markdown
Member Author

ping @fcrisciani PTAL

t.b.h., I only wanted to cherry-pick the second (which is a fix), but looked like the fix was introduced in
#2561, so not sure if this is important enough as backport, but slightly improves logging noise

@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 3, 2018

Codecov Report

❗ No coverage uploaded for pull request base (bump_v18.03@fa7db2d). Click here to learn what that means.
The diff coverage is 0%.

@@              Coverage Diff               @@
##             bump_v18.03    #2722   +/-   ##
==============================================
  Coverage               ?   61.58%           
==============================================
  Files                  ?      134           
  Lines                  ?    21826           
  Branches               ?        0           
==============================================
  Hits                   ?    13441           
  Misses                 ?     6934           
  Partials               ?     1451

@dperny
Copy link
Copy Markdown
Collaborator

dperny commented Aug 3, 2018

LGTM.

Copy link
Copy Markdown

@fcrisciani fcrisciani left a comment

Choose a reason for hiding this comment

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

LGTM

Flavio Crisciani and others added 2 commits August 19, 2019 22:01
- fix the logic that was checking for predefined networks. Before the
GetNetwork was passing the network name, while instead the network ID is
the key that is supposed to be used. The CreateNetwork anyway is doing
the very same check and create the network if not existing.

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
(cherry picked from commit f6e6e69)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: nmengin <nicolas@containo.us>
(cherry picked from commit 99a0f58)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah force-pushed the 18.03-backport-2719-fix-error-message-logging branch from 8f0aed8 to acefa73 Compare August 19, 2019 20:01
@thaJeztah
Copy link
Copy Markdown
Member Author

Argh

make: *** [coverage] Terminated
Too long with no output (exceeded 10m0s)

@thaJeztah thaJeztah changed the title [bump 18.03] backport "Avoid predefined error log", and "Test if error is nil before to log it" [18.03 backport] Avoid predefined error log, and Test if error is nil before to log it Aug 19, 2019
@thaJeztah
Copy link
Copy Markdown
Member Author

closing, as 18.03 is EOL

@thaJeztah thaJeztah closed this Jun 5, 2021
@thaJeztah thaJeztah deleted the 18.03-backport-2719-fix-error-message-logging branch June 5, 2021 21:08
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.

4 participants