Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ GOPATH=$(shell go env GOPATH)

.PHONY: all $(GOPATH)/bin/wherewasi test lint proto

go_build_flags="-tags=libsqlite3"
go_build_flags=-tags="libsqlite3 sqlite3_unlock_notify"

all: $(GOPATH)/bin/wherewasi test lint

Expand Down
1 change: 1 addition & 0 deletions owntracks.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ func (o *owntracksServer) HandlePublish(w http.ResponseWriter, r *http.Request)
// Failed to save location in local database and/or proxy it to recorder.
if len(errs) != 0 {
metricOTSubmitErrorCount.Inc()
o.log.Printf("persisting device location: %s", strings.Join(errs, ", "))
http.Error(w, fmt.Sprintf("error: %s", strings.Join(errs, ", ")), http.StatusInternalServerError)
return
}
Expand Down