mirror of
https://github.com/containers/podman.git
synced 2026-03-22 08:32:42 -04:00
* If possible, update each dependency to the latest available version. * Use releases over commit IDs and avoid vendoring branches. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
16 lines
328 B
Go
16 lines
328 B
Go
package hcs
|
|
|
|
import "github.com/sirupsen/logrus"
|
|
|
|
func logOperationBegin(ctx logrus.Fields, msg string) {
|
|
logrus.WithFields(ctx).Debug(msg)
|
|
}
|
|
|
|
func logOperationEnd(ctx logrus.Fields, msg string, err error) {
|
|
if err == nil {
|
|
logrus.WithFields(ctx).Debug(msg)
|
|
} else {
|
|
logrus.WithFields(ctx).WithError(err).Error(msg)
|
|
}
|
|
}
|