Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update logging format to align messages #473

Merged
merged 1 commit into from
May 16, 2019
Merged

Conversation

mogren
Copy link
Contributor

@mogren mogren commented May 16, 2019

Description of changes:
Use a tab instead of a space after the log level. Example of log output:

2019-05-16T19:31:39Z [DEBUG]	Discovered ENI eni-053402f8bf3d6c1a7, trying to set it up
2019-05-16T19:31:39Z [DEBUG]	DataStore Add an ENI eni-053402f8bf3d6c1a7
2019-05-16T19:31:39Z [INFO]	Synced successfully with APIServer
2019-05-16T19:31:39Z [INFO]	Add/Update for Pod cni-metrics-helper-688f4747cf-chvvm on my node, namespace = kube-system, IP = 172.31.2.95
2019-05-16T19:31:39Z [INFO]	Add/Update for Pod coredns-7d77776957-hmj5p on my node, namespace = kube-system, IP = 172.31.3.20
2019-05-16T19:31:39Z [INFO]	Add/Update for CNI pod aws-node-p6htp
2019-05-16T19:31:39Z [INFO]	Add/Update for CNI pod aws-node-gp6j4
2019-05-16T19:31:39Z [INFO]	Add/Update for CNI pod aws-node-rqz2m
2019-05-16T19:31:39Z [INFO]	Add/Update for Pod coredns-7d77776957-cdpsc on my node, namespace = kube-system, IP = 172.31.10.37
2019-05-16T19:31:39Z [DEBUG]	Adding ENI(eni-053402f8bf3d6c1a7)'s IPv4 address 172.31.10.110 to datastore
2019-05-16T19:31:39Z [DEBUG]	IP Address Pool stats: total: 0, assigned: 0
2019-05-16T19:31:39Z [INFO]	Added ENI(eni-053402f8bf3d6c1a7)'s IP 172.31.10.110 to datastore
2019-05-16T19:31:39Z [DEBUG]	Adding ENI(eni-053402f8bf3d6c1a7)'s IPv4 address 172.31.3.254 to datastore
2019-05-16T19:31:39Z [DEBUG]	IP Address Pool stats: total: 1, assigned: 0
2019-05-16T19:31:39Z [INFO]	Added ENI(eni-053402f8bf3d6c1a7)'s IP 172.31.3.254 to datastore
2019-05-16T19:31:39Z [DEBUG]	Adding ENI(eni-053402f8bf3d6c1a7)'s IPv4 address 172.31.2.149 to datastore
2019-05-16T19:31:39Z [DEBUG]	IP Address Pool stats: total: 2, assigned: 0
2019-05-16T19:31:39Z [INFO]	Added ENI(eni-053402f8bf3d6c1a7)'s IP 172.31.2.149 to datastore
2019-05-16T19:31:39Z [INFO]	ENI eni-053402f8bf3d6c1a7 set up.

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

@mogren mogren force-pushed the improved-logging branch from 2c347da to ccf1c29 Compare May 16, 2019 19:38
@mogren mogren merged commit 4e1bb90 into aws:master May 16, 2019
@mogren mogren deleted the improved-logging branch May 16, 2019 20:22
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