Skip to content

Commit

Permalink
Pass firecracker log level through jailer
Browse files Browse the repository at this point in the history
Signed-off-by: Gudmundur Bjarni Olafsson <[email protected]>
  • Loading branch information
gudmundur committed Jun 12, 2024
1 parent 56d0833 commit fe67294
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jailer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit fe67294

Please sign in to comment.