tangled
alpha
login
or
join now
8bit.lol
/
pegasus
forked from
futur.blue/pegasus
0
fork
atom
objective categorical abstract machine language personal data server
0
fork
atom
overview
issues
pulls
pipelines
Disable noisy logging
futur.blue
2 months ago
f34d425d
74a4ba03
verified
This commit was signed with the committer's
known signature
.
futur.blue
SSH Key Fingerprint:
SHA256:QHGqHWNpqYyw9bt8KmPuJIyeZX9SZewBZ0PR1COtKQ0=
+9
-1
1 changed file
expand all
collapse all
unified
split
bin
main.ml
+9
-1
bin/main.ml
···
203
203
204
204
let serve () =
205
205
Printexc.record_backtrace true ;
206
206
+
Dream.initialize_log ~level:Env.log_level () ;
207
207
+
List.iter (fun src ->
208
208
+
match Logs.Src.name src with
209
209
+
(* useless noise on debug level *)
210
210
+
| "cohttp.lwt.io" | "cohttp.lwt.server" | "tls.tracing" | "tls.config" ->
211
211
+
Logs.Src.set_level src None
212
212
+
| _ ->
213
213
+
() )
214
214
+
@@ Logs.Src.list () ;
206
215
let%lwt db = Data_store.connect ~create:true () in
207
216
S3.Backup.start () ;
208
208
-
Dream.initialize_log ~level:`Debug () ;
209
217
Dream.serve ~interface:"0.0.0.0" ~port:8008
210
218
@@ Dream.pipeline
211
219
[ Dream.logger