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/cli
cmd/pttodo/pttodo cmd/pttodo/pttodo
/truckstop /truckstop
/exec-truckstop

View File

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

View File

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

View File

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