Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
apollo
Commits
82ab7b23
Commit
82ab7b23
authored
Dec 06, 2016
by
lepdou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set email.supported.envs default value empty
parent
b9ff4798
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
ConfigPublishListener.java
...amework/apollo/portal/listener/ConfigPublishListener.java
+10
-2
No files found.
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/listener/ConfigPublishListener.java
View file @
82ab7b23
...
...
@@ -18,6 +18,7 @@ import org.slf4j.LoggerFactory;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.event.EventListener
;
import
org.springframework.stereotype.Component
;
import
org.springframework.util.StringUtils
;
import
java.util.HashSet
;
import
java.util.Set
;
...
...
@@ -47,9 +48,17 @@ public class ConfigPublishListener {
@PostConstruct
public
void
init
()
{
initEmailSupportedEnvs
();
}
private
void
initEmailSupportedEnvs
()
{
try
{
String
sendEmailSwitchConfig
=
serverConfigService
.
getValue
(
"email.supported.envs"
,
"PRO"
);
serverConfigService
.
getValue
(
"email.supported.envs"
,
""
);
if
(
StringUtils
.
isEmpty
(
sendEmailSwitchConfig
))
{
return
;
}
String
[]
supportedEnvs
=
sendEmailSwitchConfig
.
split
(
","
);
for
(
String
env
:
supportedEnvs
)
{
...
...
@@ -59,7 +68,6 @@ public class ConfigPublishListener {
logger
.
error
(
"init email supported envs failed."
,
e
);
Tracer
.
logError
(
"init email supported envs failed."
,
e
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment