Skip to content

Commit

Permalink
Pass firecracker log level through jailer
Browse files Browse the repository at this point in the history
  • Loading branch information
gudmundur committed Jun 12, 2024
1 parent 56d0833 commit 8972ca9
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 8972ca9

Please sign in to comment.