Compare commits

...

4 Commits

Author SHA1 Message Date
bel
d3381749f7 gitignore 2022-01-17 19:00:32 -07:00
bel
55848d6c7d todo 2022-01-17 19:00:23 -07:00
bel
f9819350ad log sosf on panics from main 2022-01-17 18:55:11 -07:00
bel
7062094234 rm dev log 2022-01-17 18:54:27 -07:00
4 changed files with 8 additions and 6 deletions

1
.gitignore vendored
View File

@@ -4,3 +4,4 @@ cmd/cmd
cmd/cli
cmd/pttodo/pttodo
/truckstop
/exec-truckstop

View File

@@ -5,7 +5,6 @@ import (
"errors"
"fmt"
"io"
"log"
"os"
"strings"
"sync"
@@ -90,7 +89,6 @@ func logf(l Level, format string, args []interface{}) {
fmt.Fprintf(os.Stderr, format, args...)
}
fmt.Fprintf(logger, format, args...)
log.Printf("l==sos=%v, ansoser!=nil=%v", l == SOS, ansoser != nil)
if l == SOS && cAnsoser != nil {
cAnsoser.Send(fmt.Sprintf(format, args...))
}

View File

@@ -26,6 +26,7 @@ func main() {
}
if config.Get().Message.Matrix.ReceiveEnabled {
if err := matrixrecv(); err != nil {
logtr.SOSf("failed to recv matrix on boot: %v", err)
panic(err)
}
}
@@ -47,6 +48,7 @@ func main() {
}
}()
if err := _main(); err != nil {
logtr.SOSf("failed _main: %v", err)
panic(err)
}
lock.Lock()

View File

@@ -1,8 +1,7 @@
todo:
- help() log on truckstop for stuff like perma 403
- TEST its falling apart
- mark jobs no longer avail by modifying in matrix
- write-as for clients so ma can write to pa by default
- mark jobs no longer avail by modifying in matrix;; save matrix ID over dummy payload
- recv-as for clients so pa receives mas commands as writes
- try search ntg by autoinc?
- continuation is garbo, but I can still do better client side to avoid get-set high level
- no hard code jpeg or have it in multiple places
- test each !command callbacks to matrix
@@ -15,6 +14,8 @@ todo:
- banlist criteria like vendors, brokers, metadata
- set up copy for caleb, broc
done:
- TEST its falling apart
- help() log on truckstop for stuff like perma 403
- figure out zoom on maps;; is there like an auto-zoom I can leverage?
- mock is nigh useless
- mark consumed;; save scroll id for matrix