Skip to content

Commit

Permalink
Return templateLogPluginCollection instead of nil even if no plugins …
Browse files Browse the repository at this point in the history
…are specified

Signed-off-by: Jeev B <[email protected]>
  • Loading branch information
jeevb committed Nov 10, 2023
1 parent 65b68c5 commit 114138d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions flyteplugins/go/tasks/logs/logging_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,5 @@ func InitializeLogPlugins(cfg *LogConfig) (tasklog.Plugin, error) {
}

plugins = append(plugins, cfg.Templates...)

if len(plugins) == 0 {
return nil, nil
}

return templateLogPluginCollection{plugins: plugins}, nil
}

0 comments on commit 114138d

Please sign in to comment.