Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Conversation

@sboeuf
Copy link

@sboeuf sboeuf commented Jan 13, 2018

This PR first re-vendors the proxy, then it constraints the logrus version to be v1.0.4 instead of v1.0.3.
At last, the most important part of this PR is that we enable the proxy logging towards the syslog to centralize all proxy logs to the system journal.

Fixes #22 #24

Sebastien Boeuf added 3 commits January 12, 2018 15:54
This commit updates the proxy vendoring so that we can rely on latest
versions of the vendored packages.

Fixes kata-containers#24

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
Logrus is imported directly from the proxy code, but no explicit
constraint was set up.

Fixes kata-containers#24

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit allows the proxy to log to syslog so that debugging will
get easier. Indeed, all logs will end up in the journal.

Fixes kata-containers#22

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
@codecov
Copy link

codecov bot commented Jan 13, 2018

Codecov Report

Merging #26 into master will decrease coverage by 3.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #26      +/-   ##
==========================================
- Coverage   37.36%   34.34%   -3.02%     
==========================================
  Files           1        1              
  Lines          91       99       +8     
==========================================
  Hits           34       34              
- Misses         50       58       +8     
  Partials        7        7
Impacted Files Coverage Δ
proxy.go 34.34% <0%> (-3.02%) ⬇️

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 02a5863...5c487e0. Read the comment docs.

@bergwolf
Copy link
Member

bergwolf commented Jan 15, 2018

LGTM

Approved with PullApprove

1 similar comment
@sameo
Copy link

sameo commented Jan 15, 2018

LGTM

Approved with PullApprove

@sameo sameo merged commit b739853 into kata-containers:master Jan 15, 2018
logrus.SetLevel(level)
proxyLog.SetLevel(level)

hook, err := lSyslog.NewSyslogHook("", "", syslog.LOG_INFO, "")

Choose a reason for hiding this comment

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

The last arg here needs to be proxyName - see clearcontainers/proxy#181.

@jodh-intel
Copy link

Dang - too late ;)

@jodh-intel
Copy link

/me raises PR...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants