Merge branch 'stable-3.0' into stable-3.1
* stable-3.0: Make toString(), hashCode(), equals() and friends final in AutoValue classes Schema_169: Increase log severity level Schema_146: Fix FutureReturnValueIgnored warning flagged by error prone Fix various usages of the Flogger API Schema_169: Fix usage of Flogger to log exception stack trace Keep alive database connection to prevent exceeding wait timeout Change-Id: I8af4a599788e55da4ff50ac513ff7ff910e1938d
This commit is contained in:
		@@ -284,7 +284,7 @@ class OpenIdServiceImpl {
 | 
			
		||||
        // right now. Instead of blocking all of them log the error and
 | 
			
		||||
        // let the authentication complete anyway.
 | 
			
		||||
        //
 | 
			
		||||
        logger.atSevere().log("Invalid PAPE response %s: %s", openidIdentifier, err);
 | 
			
		||||
        logger.atSevere().withCause(err).log("Invalid PAPE response from %s", openidIdentifier);
 | 
			
		||||
        unsupported = true;
 | 
			
		||||
        ext = null;
 | 
			
		||||
      }
 | 
			
		||||
 
 | 
			
		||||
@@ -230,7 +230,8 @@ public class PluginConfigFactory implements ReloadPluginListener {
 | 
			
		||||
      cfg.load();
 | 
			
		||||
    } catch (ConfigInvalidException e) {
 | 
			
		||||
      // This is an error in user input, don't spam logs with a stack trace.
 | 
			
		||||
      logger.atWarning().log("Failed to load %s: %s", pluginConfigFile.toAbsolutePath(), e);
 | 
			
		||||
      logger.atWarning().log(
 | 
			
		||||
          "Failed to load %s: %s", pluginConfigFile.toAbsolutePath(), e.getMessage());
 | 
			
		||||
    } catch (IOException e) {
 | 
			
		||||
      logger.atWarning().withCause(e).log("Failed to load %s", pluginConfigFile.toAbsolutePath());
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -162,11 +162,11 @@ public class Text extends RawText {
 | 
			
		||||
      return Charset.forName(encoding);
 | 
			
		||||
 | 
			
		||||
    } catch (IllegalCharsetNameException err) {
 | 
			
		||||
      logger.atSevere().log("Invalid detected charset name '%s': %s", encoding, err);
 | 
			
		||||
      logger.atSevere().log("Invalid detected charset name '%s': %s", encoding, err.getMessage());
 | 
			
		||||
      return ISO_8859_1;
 | 
			
		||||
 | 
			
		||||
    } catch (UnsupportedCharsetException err) {
 | 
			
		||||
      logger.atSevere().log("Detected charset '%s' not supported: %s", encoding, err);
 | 
			
		||||
      logger.atSevere().log("Detected charset '%s' not supported: %s", encoding, err.getMessage());
 | 
			
		||||
      return ISO_8859_1;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user