File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ const (
42
42
)
43
43
44
44
// CPUTemplate defines a set of CPU features that are exposed by Firecracker
45
- type CPUTemplate models.CPUTemplate
45
+ type CPUTemplate = models.CPUTemplate
46
46
47
47
// CPUTemplates known by Firecracker. These are passed through directly from the model.
48
48
const (
@@ -89,12 +89,12 @@ type Machine struct {
89
89
cfg Config
90
90
client Firecracker
91
91
cmd * exec.Cmd
92
- logger * log.Logger
92
+ logger * log.Entry
93
93
machineConfig models.MachineConfiguration // The actual machine config as reported by Firecracker
94
94
}
95
95
96
96
// Logger returns a logrus logger appropriate for logging hypervisor messages
97
- func (m * Machine ) Logger () * log.Logger {
97
+ func (m * Machine ) Logger () * log.Entry {
98
98
// return m.logger.WithField("subsystem", "firecracker-go-sdk")
99
99
return m .logger
100
100
}
@@ -143,7 +143,7 @@ func NewMachine(cfg Config, opts ...Opt) *Machine {
143
143
}
144
144
145
145
if m .logger == nil {
146
- m .logger = log .New ()
146
+ m .logger = log .NewEntry ( log . New () )
147
147
}
148
148
149
149
if m .client == nil {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ func WithClient(client Firecracker) Opt {
12
12
}
13
13
}
14
14
15
- func WithLogger (logger * logrus.Logger ) Opt {
15
+ func WithLogger (logger * logrus.Entry ) Opt {
16
16
return func (machine * Machine ) {
17
17
machine .logger = logger
18
18
}
You can’t perform that action at this time.
0 commit comments