Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
cmd/snap-update-ns: add logging to snap-update-ns #4104
Conversation
codecov-io
commented
Oct 30, 2017
•
Codecov Report
@@ Coverage Diff @@
## master #4104 +/- ##
=========================================
- Coverage 75.63% 75.53% -0.1%
=========================================
Files 435 435
Lines 37666 37640 -26
=========================================
- Hits 28489 28432 -57
- Misses 7183 7217 +34
+ Partials 1994 1991 -3
Continue to review full report at Codecov.
|
stolowski
approved these changes
Oct 31, 2017
Nice! Approved, see just one small suggestion.
| @@ -107,10 +112,14 @@ func run() error { | ||
| // symlinks or perform other malicious activity (such as attempting to | ||
| // introduce a symlink that would cause us to mount something other | ||
| // than what we expected). | ||
| + logger.Debugf("freezing processes of snap %q", snapName) | ||
| if err := freezeSnapProcesses(opts.Positionals.SnapName); err != nil { | ||
| return err |
zyga
Oct 31, 2017
Contributor
The error gets printed to stderr when the program fails, this error is propagated directly out of run and into main.
zyga
added this to the 2.30 milestone
Nov 2, 2017
zyga
added some commits
Oct 31, 2017
zyga
merged commit 511e6a6
into
snapcore:master
Nov 3, 2017
1 of 7 checks passed
artful-amd64
autopkgtest running
Details
artful-i386
autopkgtest running
Details
xenial-amd64
autopkgtest running
Details
xenial-i386
autopkgtest running
Details
xenial-ppc64el
autopkgtest running
Details
zesty-amd64
autopkgtest running
Details
continuous-integration/travis-ci/pr
The Travis CI build passed
Details
zyga
deleted the
zyga:tweak/snap-update-ns-logging
branch
Nov 3, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
zyga commentedOct 30, 2017
•
Edited 1 time
-
zyga
Oct 31, 2017
This branch adds a number of useful debug messages to snap-update-ns.
They can now be enabled by running with SNAPD_DEBUG=1 set.
Signed-off-by: Zygmunt Krynicki zygmunt.krynicki@canonical.com