Skip to content

Commit

Permalink
Merge pull request #574 from gudmundur/jailer-log-level
Browse files Browse the repository at this point in the history
Pass `--level` through `jailer` if set
  • Loading branch information
swagatbora90 committed Jun 14, 2024
2 parents 56d0833 + fe67294 commit 584828d
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 584828d

Please sign in to comment.