Skip to content

Commit

Permalink
Fix bug in argument parsing for logger creation
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Lezar <elezar@nvidia.com>
  • Loading branch information
elezar committed Jul 1, 2024
1 parent 1176a92 commit 9c0f7d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Ensure consistent construction of libraries for CDI spec generation.
* Ensure that `nvidia-ctk cdi transform` creates specs with world-readable permissions.
* Remove provenance information from published images.
* Fix bug in processing of `--log=` argument of `nvidia-container-runtime`.

## v1.15.0

Expand Down
2 changes: 1 addition & 1 deletion internal/runtime/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ func parseArgs(args []string) loggerConfig {
var value string
switch {
case len(parts) == 2:
value = parts[2]
value = parts[1]
case i+1 < len(args):
value = args[i+1]
i++
Expand Down

0 comments on commit 9c0f7d8

Please sign in to comment.