nitweb: Adapt server to new `pop_logging` interface
authorAlexandre Terrasa <alexandre@moz-code.org>
Sat, 15 Jun 2019 01:39:40 +0000 (21:39 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Tue, 18 Jun 2019 00:57:30 +0000 (20:57 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

src/nitweb.nit

index 9e9d54f..d3c8c63 100644 (file)
@@ -99,7 +99,7 @@ private class NitwebPhase
                app.use("/oauth", new GithubOAuthCallBack(config.github_client_id, config.github_client_secret))
                app.use("/logout", new GithubLogout)
                app.use("/*", new StaticHandler(toolcontext.share_dir / "nitweb", "index.html"))
-               app.use_after("/*", new ConsoleLog)
+               app.use_after("/*", new PopLogger(info_level))
 
                app.listen(config.app_host, config.app_port)
        end