tconsole: add logs page
This is a basic log console. Future work can be performed to make the
display more compact, allow scrollback functionality and maybe scrolling
to the sides to see longer lines.
Change-Id: I81defe874542acfe89137035d0fc6de9861d3e33
Reviewed-on: https://review.monogon.dev/c/monogon/+/3382
Reviewed-by: Leopold Schabel <leo@monogon.tech>
Tested-by: Jenkins CI
diff --git a/metropolis/node/core/main.go b/metropolis/node/core/main.go
index d103693..babee28 100644
--- a/metropolis/node/core/main.go
+++ b/metropolis/node/core/main.go
@@ -214,7 +214,7 @@
// Initialize interactive consoles.
interactiveConsoles := []string{"/dev/tty0"}
for _, c := range interactiveConsoles {
- console, err := tconsole.New(tconsole.TerminalLinux, c, &networkSvc.Status, &rs.LocalRoles, &rs.CuratorConnection)
+ console, err := tconsole.New(tconsole.TerminalLinux, c, lt, &networkSvc.Status, &rs.LocalRoles, &rs.CuratorConnection)
if err != nil {
logger.Info("Failed to initialize interactive console at %s: %v", c, err)
// TODO: fall back to logger