google-nomulus/java/google/registry/module
jianglai e73325edcf Make FOSS build work with DummyKeyringModule
DummyKeyringModule provides a fake string as the JSON credential used to instantiate a GoogleCredential. Of course this would not work and when the metric reporter requests a GoogleCredential in the main thread. This causes the FOSS build to crash on startup, because it defaults to use DummyKeyringModule.

This change allows a graceful handling of such an error by wrapping any calls to instantiate a metric reporter in a try block. Note that any attempt to write to stackdriver will still fail, but that happens in a different thread and will not make the whole program crash.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=177183337
2017-12-01 22:14:06 -05:00
..
backend Make FOSS build work with DummyKeyringModule 2017-12-01 22:14:06 -05:00
frontend Make FOSS build work with DummyKeyringModule 2017-12-01 22:14:06 -05:00
tools Install DummyKeyringModule in FOSS build 2017-11-21 18:34:13 -05:00