succd: log pressures in error messages
This commit is contained in:
parent
451b44e31b
commit
590e93e43e
3 changed files with 31 additions and 25 deletions
|
|
@ -78,11 +78,11 @@ func (d *daemon) processOnce(_ context.Context) error {
|
|||
d.safety.failsafe = true
|
||||
klog.Errorf("Pirani probe seems disconnected; enabling failsafe mode")
|
||||
}
|
||||
} else {
|
||||
} else if d.piraniDetection() == piraniDetectionConnected {
|
||||
if d.safety.failsafe {
|
||||
if mbar >= 1e2 {
|
||||
d.safety.failsafe = false
|
||||
klog.Infof("Values are plausible again; quitting failsafe mode")
|
||||
klog.Infof("Pirani probe value (%s) is plausible again; quitting failsafe mode", formatMbar(mbar))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -90,12 +90,12 @@ func (d *daemon) processOnce(_ context.Context) error {
|
|||
if mbar >= 1e-1 {
|
||||
if !d.safety.highPressure {
|
||||
d.safety.highPressure = true
|
||||
klog.Errorf("Pressure is too high; enabling diffusion pump lockout")
|
||||
klog.Errorf("Pressure is too high (%s mbar); enabling diffusion pump lockout", formatMbar(mbar))
|
||||
}
|
||||
} else if mbar < (1e-1)-(1e-2) {
|
||||
if d.safety.highPressure {
|
||||
d.safety.highPressure = false
|
||||
klog.Infof("Pressure is low enough for diffusion pump operation; quitting diffusion pump lockout")
|
||||
klog.Infof("Pressure is low enough (%s mbar) for diffusion pump operation; quitting diffusion pump lockout", formatMbar(mbar))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue