Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit 9425b32

Browse files
committed
more klog
1 parent 4ad6bfc commit 9425b32

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/cloud/packet/actuators/machine/actuator.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ func (a *Actuator) Create(ctx context.Context, cluster *clusterv1.Cluster, machi
153153
return errors.New(msg)
154154
}
155155

156-
log.Printf("Creating machine %v for cluster %v.", machine.Name, cluster.Name)
156+
klog.Infof("Creating machine %v for cluster %v.", machine.Name, cluster.Name)
157157
serverCreateOpts := &packngo.DeviceCreateRequest{
158158
Hostname: machine.Name,
159159
UserData: userdata,
@@ -173,7 +173,7 @@ func (a *Actuator) Create(ctx context.Context, cluster *clusterv1.Cluster, machi
173173
}
174174

175175
// we need to loop here until the device exists and has an IP address
176-
log.Printf("Created device %s, waiting for it to be ready", machine.Name)
176+
klog.Infof("Created device %s, waiting for it to be ready", machine.Name)
177177
a.waitForMachineReady(device)
178178

179179
// add the annotations so that cluster-api knows it is there (also, because it is useful to have)
@@ -202,7 +202,7 @@ func (a *Actuator) Delete(ctx context.Context, cluster *clusterv1.Cluster, machi
202202
if machine == nil {
203203
return fmt.Errorf("cannot delete nil machine")
204204
}
205-
log.Printf("Deleting machine %v for cluster %v.", machine.Name, cluster.Name)
205+
klog.Infof("Deleting machine %v for cluster %v.", machine.Name, cluster.Name)
206206
device, err := a.packetClient.GetDevice(machine)
207207
if err != nil {
208208
return fmt.Errorf("error retrieving machine status %s: %v", machine.Name, err)
@@ -232,7 +232,7 @@ func (a *Actuator) Update(ctx context.Context, cluster *clusterv1.Cluster, machi
232232
return fmt.Errorf("unable to unpack cluster provider: %v", err)
233233
}
234234

235-
log.Printf("Updating machine %v for cluster %v.", machine.Name, cluster.Name)
235+
klog.Infof("Updating machine %v for cluster %v.", machine.Name, cluster.Name)
236236
// how to update the machine:
237237
// - get the current parameters of the machine from the API
238238
// - check if anything immutable has changed, in which case we return an error
@@ -272,7 +272,7 @@ func (a *Actuator) Exists(ctx context.Context, cluster *clusterv1.Cluster, machi
272272
return false, fmt.Errorf("cannot check if nil machine exists")
273273
}
274274
var msg string
275-
log.Printf("Checking if machine %v for cluster %v exists.", machine.Name, cluster.Name)
275+
klog.Infof("Checking if machine %v for cluster %v exists.", machine.Name, cluster.Name)
276276
device, err := a.packetClient.GetDevice(machine)
277277
if err != nil {
278278
msg = fmt.Sprintf("error retrieving machine status %s: %v", machine.Name, err)

0 commit comments

Comments
 (0)