Share unavailable() so the Windows sensor logs unavailable transitions
This commit is contained in:
@@ -4,7 +4,6 @@ package evidence
|
||||
|
||||
import (
|
||||
"context"
|
||||
"log"
|
||||
|
||||
"github.com/jezek/xgb/xproto"
|
||||
"github.com/jezek/xgbutil"
|
||||
@@ -88,7 +87,3 @@ func snapshot(X *xgbutil.XUtil) WindowSnapshot {
|
||||
}
|
||||
}
|
||||
|
||||
func unavailable(reason string) WindowSnapshot {
|
||||
log.Printf("evidence: %s", reason)
|
||||
return WindowSnapshot{Health: EvidenceHealth{Available: false, Reason: reason}}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user