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

Stdout shouldn't output warning / logging messages. #295

Closed
cdrage opened this issue Nov 18, 2016 · 2 comments
Closed

Stdout shouldn't output warning / logging messages. #295

cdrage opened this issue Nov 18, 2016 · 2 comments

Comments

@cdrage
Copy link
Member

cdrage commented Nov 18, 2016

When doing --stdout. I don't think is should be outputting. --surpress-warnings should be set by default if passing in --stdout

WARN[0000] Unsupported key network_mode - ignoring      
WARN[0000] Unsupported key build - ignoring             
WARN[0000] Unsupported key depends_on - ignoring        
WARN[0000] Unsupported key tty - ignoring               
WARN[0000] [anitya-postgres] Service cannot be created because of missing port. 
WARN[0000] Failed to configure container volume: invalid volume format: ./lib/cucoslib:/usr/lib/python3.5/site-packages/cucoslib:ro,z 
WARN[0000] Failed to configure container volume: invalid volume format: ./server/bayesian:/usr/lib/python3.5/site-packages/bayesian:ro,z 
WARN[0000] Failed to configure container volume: invalid volume format: ./server/kerberos/keytab:/mnt:ro,z 
WARN[0000] Failed to configure container volume: invalid volume format: ./server/coreapi-httpd.conf:/etc/httpd/conf.d/coreapi-httpd.conf:ro,z 
WARN[0000] Failed to configure container volume: invalid volume format: ./server/:/coreapi/:ro,z 
WARN[0000] [redis-populate] Service cannot be created because of missing port. 
WARN[0000] [beat-scheduler] Service cannot be created because of missing port. 
WARN[0000] Failed to configure container volume: invalid volume format: ./lib/cucoslib:/usr/lib/python2.7/site-packages/cucoslib:ro,z 
WARN[0000] [worker] Service cannot be created because of missing port. 
WARN[0000] Failed to configure container volume: invalid volume format: ./lib/cucoslib:/usr/lib/python3.5/site-packages/cucoslib:ro,z 
WARN[0000] Failed to configure container volume: invalid volume format: ./mercator/mercator:/usr/lib/python3.5/site-packages/mercator:ro,z 
WARN[0000] Failed to configure container volume: invalid volume format: ./lib/hack/secrets.yaml:/var/lib/secrets/secrets.yaml:ro,z 
@kadel
Copy link
Member

kadel commented Nov 29, 2016

Those warning are on stderr. So it shouldn't cause any problems. Some of the warning are quite important as they are informing about things that can make application non working properly (like missing port, or skipped volumes)

@sebgoa
Copy link
Contributor

sebgoa commented Nov 29, 2016

agreed with kadel.

$ ./kompose -f ./examples/docker-voting.yml convert --stdout > foobar
WARN[0000] [worker] Service cannot be created because of missing port. 
sebair: kompose (preference)$ cat foobar | more
{
  "kind": "List",
  "apiVersion": "v1",

@cdrage cdrage closed this as completed Jan 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants