Skip to content

Switch from skel.PluginMain to skel.PluginMainWithError, as the log h…#451

Merged
mogren merged 1 commit intoaws:masterfrom
venkatesh-eb:fix_log_flush
May 7, 2019
Merged

Switch from skel.PluginMain to skel.PluginMainWithError, as the log h…#451
mogren merged 1 commit intoaws:masterfrom
venkatesh-eb:fix_log_flush

Conversation

@venkatesh-eb
Copy link
Copy Markdown
Contributor

…as to be flushed before os.Exit is called.

Description of changes:

  • Flush the log before exiting when cni plugin has an error.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@mogren mogren self-requested a review May 7, 2019 06:54
Copy link
Copy Markdown
Contributor

@mogren mogren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @venkatesh-eb, looks good to me.

K8S_POD_NAMESPACE: string(k8sArgs.K8S_POD_NAMESPACE),
K8S_POD_INFRA_CONTAINER_ID: string(k8sArgs.K8S_POD_INFRA_CONTAINER_ID),
IfName: args.IfName})
IfName: args.IfName})
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@mogren mogren merged commit 6fe1ecf into aws:master May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants