From 8972ca9309af578dc4f7751f2f31991593d22b33 Mon Sep 17 00:00:00 2001 From: Gudmundur Bjarni Olafsson Date: Wed, 12 Jun 2024 10:37:38 +0200 Subject: [PATCH] Pass firecracker log level through jailer --- jailer.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jailer.go b/jailer.go index 208de670..126390ea 100644 --- a/jailer.go +++ b/jailer.go @@ -339,6 +339,10 @@ func jail(ctx context.Context, m *Machine, cfg *Config) error { fcArgs := seccompArgs(cfg) fcArgs = append(fcArgs, "--api-sock", machineSocketPath) + if cfg.LogLevel != "" { + fcArgs = append(fcArgs, "--level", cfg.LogLevel) + } + builder := NewJailerCommandBuilder(). WithID(cfg.JailerCfg.ID). WithUID(*cfg.JailerCfg.UID).