summaryrefslogtreecommitdiff
path: root/vendor/github.com/Microsoft/hcsshim/internal/hcs/log.go
blob: 90d164e35e186f198335115a6773a143666f4657 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)
	}
}