Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

combine log.warning of tunnelHost into exception message #1498

Merged
merged 3 commits into from
Oct 19, 2016

Conversation

Yaliang
Copy link
Contributor

@Yaliang Yaliang commented Oct 17, 2016

No description provided.

@@ -77,8 +77,7 @@ public void initialize(Config newConfig) {

String newConnectionString = tunneledResults.first;
if (newConnectionString.isEmpty()) {
LOG.warning("Cannot connect to tunnelHost: " + tunnelConfig.getTunnelHost());
throw new IllegalArgumentException("Bad connectionString: " + connectionString);
throw new IllegalArgumentException("Cannot connect to tunnelHost: " + tunnelConfig.getTunnelHost() + "\nBad connectionString: " + connectionString);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's remove the newline from the exception message. This complicates log parsing when grepping or using loglens.

@billonahill
Copy link
Contributor

👍 once CI is fixed.

@objmagic
Copy link
Contributor

objmagic commented Oct 18, 2016

CuratorStateManager.java:80: Line is longer than 100 characters (found 155). [LineLength]

Please fix CI error.

@billonahill billonahill merged commit 8d16719 into apache:master Oct 19, 2016
ashvina pushed a commit to ashvina/heron that referenced this pull request Nov 9, 2016
* combine log.warning of tunnelHost into exception message

* remove newline in exception message

* fix CI error
nicknezis pushed a commit that referenced this pull request Sep 14, 2020
* combine log.warning of tunnelHost into exception message

* remove newline in exception message

* fix CI error
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants