mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-25 13:35:00 +00:00
Correct typo in check for null device
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
ce2b0dfdf0
commit
5a6860adbf
@ -45,7 +45,7 @@ func main() {
|
|||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
if cfg.DebugFilePath != "" && cfg.DebugFilePath != "/dev/nul" {
|
if cfg.DebugFilePath != "" && cfg.DebugFilePath != "/dev/null" {
|
||||||
logFile, err := os.OpenFile(cfg.DebugFilePath, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
|
logFile, err := os.OpenFile(cfg.DebugFilePath, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Errorf("Error opening debug log file: %v", err)
|
logger.Errorf("Error opening debug log file: %v", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user