try logging only unknown activities for a while
This commit is contained in:
parent
a43f9a50dc
commit
f1b4c45088
|
@ -494,6 +494,10 @@ func xonkxonk(user *WhatAbout, item interface{}) *Honk {
|
||||||
what = "eradicate"
|
what = "eradicate"
|
||||||
default:
|
default:
|
||||||
log.Printf("unknown activity: %s", what)
|
log.Printf("unknown activity: %s", what)
|
||||||
|
fd, _ := os.OpenFile("savedinbox.json", os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0666)
|
||||||
|
WriteJunk(fd, item.(map[string]interface{}))
|
||||||
|
io.WriteString(fd, "\n")
|
||||||
|
fd.Close()
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
10
honk.go
10
honk.go
|
@ -293,11 +293,6 @@ func inbox(w http.ResponseWriter, r *http.Request) {
|
||||||
keyname, err = makeitworksomehowwithoutregardforkeycontinuity(keyname, r, payload)
|
keyname, err = makeitworksomehowwithoutregardforkeycontinuity(keyname, r, payload)
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fd, _ := os.OpenFile("savedinbox.json", os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0666)
|
|
||||||
io.WriteString(fd, "bad signature:\n")
|
|
||||||
WriteJunk(fd, j)
|
|
||||||
io.WriteString(fd, "\n")
|
|
||||||
fd.Close()
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -315,10 +310,6 @@ func inbox(w http.ResponseWriter, r *http.Request) {
|
||||||
log.Printf("ignoring thumb sucker %s", who)
|
log.Printf("ignoring thumb sucker %s", who)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
fd, _ := os.OpenFile("savedinbox.json", os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0666)
|
|
||||||
WriteJunk(fd, j)
|
|
||||||
io.WriteString(fd, "\n")
|
|
||||||
fd.Close()
|
|
||||||
switch what {
|
switch what {
|
||||||
case "Ping":
|
case "Ping":
|
||||||
obj, _ := jsongetstring(j, "id")
|
obj, _ := jsongetstring(j, "id")
|
||||||
|
@ -357,6 +348,7 @@ func inbox(w http.ResponseWriter, r *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
case "Like":
|
case "Like":
|
||||||
|
case "Announce":
|
||||||
default:
|
default:
|
||||||
log.Printf("unknown undo: %s", what)
|
log.Printf("unknown undo: %s", what)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue