gana2188 / google-cloud-sdk

Automatically exported from code.google.com/p/google-cloud-sdk
0 stars 0 forks source link

Go log level not working #100

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
gcloud preview app run --log-level=debug .

What is the expected output? What do you see instead?
Logs are not written to stdout(not even errors). It appears that gcloud ignores 
--log-level flag.

When I use gcloud --verbosity=debug preview app run .
then logs are displayed (if log-level is not picked, verbosity flag is used).

Please provide any additional information below.
Application is using Go runtime.

Original issue reported on code.google.com by GoranPop...@gmail.com on 2 Jan 2015 at 3:06

GoogleCodeExporter commented 8 years ago
looking into it

Original comment by jeffvaug...@google.com on 20 Jan 2015 at 8:47

GoogleCodeExporter commented 8 years ago
If you run "gcloud --verbosity debug preview app run ." do you see the logs?  
This is what I use, and I see them.

Original comment by gmle...@google.com on 20 Jan 2015 at 9:27

GoogleCodeExporter commented 8 years ago
--verbosity=debug works as I already said in the first post and logs are 
displayed, but when vebosity is default(not chosen) and log-level is set, logs 
are not displayed. Correct me if I'm wrong but logs should be displayed if 
log-level is picked (no matter about verbosity).

log-level defaults to verbosity level and I think that is the reason why it 
works when vebosity=debug. It appears that gcloud ignores log-level argument.

Original comment by GoranPop...@gmail.com on 24 Jan 2015 at 11:00