aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--messages.go4
-rw-r--r--provider.go1
2 files changed, 5 insertions, 0 deletions
diff --git a/messages.go b/messages.go
index e5e77ae..bd673ba 100644
--- a/messages.go
+++ b/messages.go
@@ -110,6 +110,10 @@ func (s *Status) UnmarshalText(b []byte) error {
return fmt.Errorf("unknown status %v", string(b))
}
+func (s Status) String() string {
+ return status[s]
+}
+
type Resource int
const (
diff --git a/provider.go b/provider.go
index c6acc84..dc53abd 100644
--- a/provider.go
+++ b/provider.go
@@ -261,6 +261,7 @@ func (p *Provider) queryStatus(url string) (bool, error) {
if err != nil {
return false, err
}
+ log.Println("status", r.Status)
return r.Status == StatusValid, nil
}