You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
level.Error(logger).Log("msg", "Command line did not parse", "device", device)
120
+
level.Error(logger).Log("msg", "Command line did not parse", "device", device.Info_Name)
121
121
result=false
122
122
}
123
123
if (b& (1<<1)) !=0 {
124
-
level.Error(logger).Log("msg", "Device open failed, device did not return an IDENTIFY DEVICE structure, or device is in a low-power mode", "device", device)
124
+
level.Error(logger).Log("msg", "Device open failed, device did not return an IDENTIFY DEVICE structure, or device is in a low-power mode", "device", device.Info_Name)
125
125
result=false
126
126
}
127
127
if (b& (1<<2)) !=0 {
128
-
level.Warn(logger).Log("msg", "Some SMART or other ATA command to the disk failed, or there was a checksum error in a SMART data structure", "device", device)
128
+
level.Warn(logger).Log("msg", "Some SMART or other ATA command to the disk failed, or there was a checksum error in a SMART data structure", "device", device.Info_Name)
129
129
}
130
130
if (b& (1<<3)) !=0 {
131
-
level.Warn(logger).Log("msg", "SMART status check returned 'DISK FAILING'", "device", device)
131
+
level.Warn(logger).Log("msg", "SMART status check returned 'DISK FAILING'", "device", device.Info_Name)
132
132
}
133
133
if (b& (1<<4)) !=0 {
134
-
level.Warn(logger).Log("msg", "We found prefail Attributes <= threshold", "device", device)
134
+
level.Warn(logger).Log("msg", "We found prefail Attributes <= threshold", "device", device.Info_Name)
135
135
}
136
136
if (b& (1<<5)) !=0 {
137
-
level.Warn(logger).Log("msg", "SMART status check returned 'DISK OK' but we found that some (usage or prefail) Attributes have been <= threshold at some time in the past", "device", device)
137
+
level.Warn(logger).Log("msg", "SMART status check returned 'DISK OK' but we found that some (usage or prefail) Attributes have been <= threshold at some time in the past", "device", device.Info_Name)
138
138
}
139
139
if (b& (1<<6)) !=0 {
140
-
level.Warn(logger).Log("msg", "The device error log contains records of errors", "device", device)
140
+
level.Warn(logger).Log("msg", "The device error log contains records of errors", "device", device.Info_Name)
141
141
}
142
142
if (b& (1<<7)) !=0 {
143
-
level.Warn(logger).Log("msg", "The device self-test log contains records of errors. [ATA only] Failed self-tests outdated by a newer successful extended self-test are ignored", "device", device)
143
+
level.Warn(logger).Log("msg", "The device self-test log contains records of errors. [ATA only] Failed self-tests outdated by a newer successful extended self-test are ignored", "device", device.Info_Name)
0 commit comments