personal/q3k/shipstuck: fix caching log (why did go let me do this?)
Change-Id: I1c299af41e0bccd33b2a180602a1b6c5d942ffc8
diff --git a/personal/q3k/mirko.jsonnet b/personal/q3k/mirko.jsonnet
index 84a6039..88046d2 100644
--- a/personal/q3k/mirko.jsonnet
+++ b/personal/q3k/mirko.jsonnet
@@ -4,7 +4,7 @@
local top = self,
shipstuck:: {
cfg:: {
- image: "registry.k0.hswaw.net/q3k/shipstuck:315532800-83918968ad5abe42be32f55fe1037d3fa8e74d16",
+ image: "registry.k0.hswaw.net/q3k/shipstuck:315532800-d95e0b92d94efc4a4c2a7b85bc224fe5786ed708",
domain: error "domain must be set",
},
component(cfg, env): mirko.Component(env, "shipstuck") {
diff --git a/personal/q3k/shipstuck/main.go b/personal/q3k/shipstuck/main.go
index a43c5e7..3a32f37 100644
--- a/personal/q3k/shipstuck/main.go
+++ b/personal/q3k/shipstuck/main.go
@@ -36,8 +36,8 @@
if err != nil {
// vesselfinder.com down on 2021/03/29, add a 'cached' status for one hour as a hack.
if time.Now().Unix() < (1617024611 + 3600) {
- return shipStateTowed, nil
glog.Warningf("Faking vesselfinder return.")
+ return shipStateTowed, nil
}
return shipStateUnknown, fmt.Errorf("Do: %w", err)
}