File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
2
- export CGO_CFLAGS := -g -O2 -Wno-return-local-addr -Wno-stringop-overflow
2
+ export CGO_CFLAGS := -g -O2 -Wno-return-local-addr
3
+ # -Wno-stringop-overflow
3
4
4
5
build :
5
6
CGO_FLAGS=$CGO_FLAGS go build --tags=" fts5"
Original file line number Diff line number Diff line change 1
1
{
2
2
"DatabaseURI" : " dev.db?cache=shared" ,
3
+ "ListenAddr" : " 0.0.0.0:7001" ,
3
4
"Debug" : true
4
- }
5
+ }
Original file line number Diff line number Diff line change @@ -161,7 +161,9 @@ func main() {
161
161
162
162
slog .Info ("Running with config" , "config" , config .String ())
163
163
slog .Info ("Listening on" , "addr" , config .ListenAddr )
164
- http .ListenAndServe (config .ListenAddr , r )
164
+ if err := http .ListenAndServe (config .ListenAddr , r ); err != nil {
165
+ slog .Error ("error listening" , "err" , err )
166
+ }
165
167
}
166
168
167
169
func index (w http.ResponseWriter , r * http.Request ) {
You can’t perform that action at this time.
0 commit comments