google-nomulus/java/google/registry
nickfelt f640d765e8 Log EppExceptions in EppController at INFO (vs FlowRunner at WARNING)
The logging for exceptions in FlowRunner - always at WARNING - has long been sub-optimal.  For EppExceptions it's too aggressive/spammy to log at WARNING because it's generally not actionable - EppException gets properly thrown for all kinds of ordinary reasons (trying to create a resource when one already exists with that foreign key) and/or for client misbehavior that we can't control (sending bad parameter values, etc.).  For non-EppException RuntimeExceptions, it's redundant with existing logging in EppController.

This CL resolves this by removing that logging in FlowRunner entirely in favor of the EppController logging, where we're now logging EppExceptions at INFO in parallel with the existing logging of RuntimeExceptions at SEVERE.  This has the benefit that we're now logging EppExceptions that come from FlowPicker (by way of EppExceptionInProviderException),  which previously were unlogged.

Note however that this does mean that in places where we run FlowRunner without EppController - exclusively test code as it stands today - we'd no longer be logging EppExceptions.  If that seems like a loss, we could either reinstate logging there (at INFO) and just deal with redundant messages for most EppExceptions, or we could add it manually to places where we call FlowRunner.run() in tests and avoid the redundancy that way.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=154733365
2017-05-03 11:04:51 -04:00
..
backup Add loadWithMemcache() to Ofy 2017-04-26 10:57:41 -04:00
batch Make TRID field in async host/contact deletion non-optional 2017-05-03 10:54:20 -04:00
bigquery Change BigQuery call from update to patch 2017-02-06 16:45:23 -05:00
braintree Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
builddefs Add build rules for "nocron" deployments 2017-04-26 10:53:16 -04:00
config Clarify available/required OAuth scope documentation 2017-04-26 10:39:45 -04:00
cron Add response information to TldFanoutAction 2017-04-10 13:32:41 -04:00
dns Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
eclipse Add Cloud KMS as dependency of eclipse package 2017-03-21 15:17:04 -04:00
env Reduce maximum number of service instances for sandbox and alpha 2017-05-03 10:55:49 -04:00
export Remove UNRESERVED as a reservation type 2017-03-27 13:31:33 -04:00
flows Log EppExceptions in EppController at INFO (vs FlowRunner at WARNING) 2017-05-03 11:04:51 -04:00
gcs Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
groups Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
idn Run buildifier on codebase to format BUILD files 2016-11-28 18:15:21 -05:00
keyring Replace KeystoreKeyring with KmsKeystore comparison 2017-04-13 10:58:57 -04:00
loadtest Add a "loadtest" command to nomulus tool 2017-03-27 13:16:35 -04:00
mapreduce Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
model Make Registrar.loadByClientId explicitly use memcache 2017-05-03 11:01:54 -04:00
module Replace KeystoreKeyring with KmsKeystore comparison 2017-04-13 10:58:57 -04:00
monitoring Use the actual EPP command flow name for EppMetrics 2017-03-27 13:30:05 -04:00
pricing Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
rdap Remove the ofy().load() inside of HostResource.cloneProjectedAtTime 2017-03-13 11:22:55 -04:00
rde Fix bug which allowed creation of hosts with superordinate domains in pending delete state. 2017-05-03 11:03:23 -04:00
request Allow RdeStagingAction to be invoked manually 2017-04-10 13:47:51 -04:00
security Remove XsrfTokenManager fallback for validating legacy tokens 2017-03-21 15:36:31 -04:00
storage/drive Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
tldconfig/idn Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
tmch Un-Ignore a test in DomainApplicationCreateFlowTest 2017-05-03 10:44:56 -04:00
tools Throw error in get_history_entries if the specified ID is invalid 2017-05-03 10:57:20 -04:00
ui Remove abuse contact requirement 2017-04-26 11:07:48 -04:00
util Fix two warnings thrown by Eclipse 2017-04-26 10:36:51 -04:00
whois Fix two warnings thrown by Eclipse 2017-04-26 10:36:51 -04:00
xjc Add mapper to import domains from RDE deposits 2017-02-06 16:46:46 -05:00
xml Replace Throwables.propagate and variants with Guava 20 versions 2017-02-02 17:01:23 -05:00
BUILD Document procedural changes to restore 2017-05-03 10:43:25 -04:00
repositories.bzl Revert upgrade to Bazel 0.4.4 2017-03-21 15:40:54 -04:00