Closed jradcliff closed 5 years ago
Related issue in google-cloud-java: https://github.com/GoogleCloudPlatform/google-cloud-java/issues/1909
Looking at the current state of the gax-java codebase, it seems we don't use the System.err
channel needlessly any more. Closing this out.
The new(ish)
PropertiesProvider
writes exceptions and other messages toSystem.err
instead of using a logger. This creates a significant amount of noise for what appear to be non-critical errors.For example,
loadProperty
invokesSystem.err.printStackTrace
on line 81, but thereturn null
after the catch suggests exceptions there are non-critical. By using a logger instead ofSystem.err
, users can suppress these messages if desired.Example stderr output:
Thanks