mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-11 19:35:43 +00: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>
15 lines
328 B
Go
15 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)
|
|
}
|
|
}
|