You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2019/06/18 16:09:31 UTC
[trafficserver] branch master updated: Replaces Emergency() with
Error() when parsing these records.config values
This is an automated email from the ASF dual-hosted git repository.
bcall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 06a8bc4 Replaces Emergency() with Error() when parsing these records.config values
06a8bc4 is described below
commit 06a8bc4c85944572c17040b718c4d3d4517d9fe7
Author: Leif Hedstrom <zw...@apache.org>
AuthorDate: Mon Jun 17 17:28:41 2019 -0600
Replaces Emergency() with Error() when parsing these records.config values
---
proxy/http/HttpConfig.cc | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/proxy/http/HttpConfig.cc b/proxy/http/HttpConfig.cc
index a72d12d..515d15d 100644
--- a/proxy/http/HttpConfig.cc
+++ b/proxy/http/HttpConfig.cc
@@ -1615,7 +1615,7 @@ HttpConfig::parse_redirect_actions(char *input_string, RedirectEnabled::Action &
using RedirectEnabled::address_class_map;
if (nullptr == input_string) {
- Emergency("parse_redirect_actions: The configuration value is empty.");
+ Error("parse_redirect_actions: The configuration value is empty.");
return nullptr;
}
Tokenizer configTokens(", ");
@@ -1626,7 +1626,7 @@ HttpConfig::parse_redirect_actions(char *input_string, RedirectEnabled::Action &
Tokenizer ruleTokens(":");
int n_mapping = ruleTokens.Initialize(rule);
if (2 != n_mapping) {
- Emergency("parse_redirect_actions: Individual rules must be an address class and an action separated by a colon (:)");
+ Error("parse_redirect_actions: Individual rules must be an address class and an action separated by a colon (:)");
return nullptr;
}
std::string c_input(ruleTokens[0]), a_input(ruleTokens[1]);
@@ -1635,10 +1635,10 @@ HttpConfig::parse_redirect_actions(char *input_string, RedirectEnabled::Action &
Action a = action_map.find(ruleTokens[1]) != action_map.end() ? action_map[ruleTokens[1]] : Action::INVALID;
if (AddressClass::INVALID == c) {
- Emergency("parse_redirect_actions: '%.*s' is not a valid address class", static_cast<int>(c_input.size()), c_input.data());
+ Error("parse_redirect_actions: '%.*s' is not a valid address class", static_cast<int>(c_input.size()), c_input.data());
return nullptr;
} else if (Action::INVALID == a) {
- Emergency("parse_redirect_actions: '%.*s' is not a valid action", static_cast<int>(a_input.size()), a_input.data());
+ Error("parse_redirect_actions: '%.*s' is not a valid action", static_cast<int>(a_input.size()), a_input.data());
return nullptr;
}
configMapping[c] = a;