CloudStorageMaven icon indicating copy to clipboard operation
CloudStorageMaven copied to clipboard

Facilitate debugging on connection failure

Open hadrienk opened this issue 5 years ago • 2 comments

When setting up the module, I had a lot of trouble with the GOOGLE_APPLICATION_CREDENTIAL environment. The reason was some CI/CD details, but it would have saved me a lot of time to have some sort of diagnostic when the connection fails.

I am thinking:

  • Display the GOOGLE_APPLICATION_CREDENTIAL.
    • If value present, open the file. Report IO errors
      • Try parsing the file's content. Report errors (without displaying the value though)
      • If no error, display a hash value of the content on debug

hadrienk avatar May 16 '19 08:05 hadrienk

You can do so if you use -X on maven. It actually displays all the logs

gkatzioura avatar Jun 29 '19 20:06 gkatzioura

mvn -X deploy

gkatzioura avatar Jun 29 '19 20:06 gkatzioura