Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-boot-admin
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
spring-boot-admin
Commits
c17a5d53
Commit
c17a5d53
authored
Nov 24, 2014
by
Johannes Stelzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Less verbose logging on registration.
Fixes #27
parent
b9dd1632
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
ApplicationRegistry.java
.../codecentric/boot/admin/registry/ApplicationRegistry.java
+7
-7
SpringBootAdminRegistrator.java
...ntric/boot/admin/services/SpringBootAdminRegistrator.java
+1
-1
No files found.
spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/registry/ApplicationRegistry.java
View file @
c17a5d53
...
...
@@ -43,7 +43,7 @@ public class ApplicationRegistry {
/**
* Register application.
*
*
* @param app The Application.
*/
public
Application
register
(
Application
app
)
{
...
...
@@ -61,7 +61,7 @@ public class ApplicationRegistry {
LOGGER
.
info
(
"New Application {} registered "
,
newApp
);
}
else
{
if
((
app
.
getUrl
().
equals
(
oldApp
.
getUrl
())
&&
app
.
getName
().
equals
(
oldApp
.
getName
())))
{
LOGGER
.
info
(
"Application {} refreshed"
,
newApp
);
LOGGER
.
debug
(
"Application {} refreshed"
,
newApp
);
}
else
{
LOGGER
.
warn
(
"Application {} not registered because of conflict with {}"
,
newApp
,
oldApp
);
throw
new
ApplicationRegistryConflictException
(
oldApp
,
app
);
...
...
@@ -72,7 +72,7 @@ public class ApplicationRegistry {
/**
* Checks the syntax of the given URL.
*
*
* @param url The URL.
* @return true, if valid.
*/
...
...
@@ -87,7 +87,7 @@ public class ApplicationRegistry {
/**
* Get a list of all registered applications.
*
*
* @return List.
*/
public
Collection
<
Application
>
getApplications
()
{
...
...
@@ -96,7 +96,7 @@ public class ApplicationRegistry {
/**
* Get a list of all registered applications.
*
*
* @return List.
*/
public
Collection
<
Application
>
getApplicationsByName
(
String
name
)
{
...
...
@@ -105,7 +105,7 @@ public class ApplicationRegistry {
/**
* Get a specific application inside the registry.
*
*
* @param id Id.
* @return Application.
*/
...
...
@@ -115,7 +115,7 @@ public class ApplicationRegistry {
/**
* Remove a specific application from registry
*
*
* @param id
* @return the unregistered Application
*/
...
...
spring-boot-starter-admin-client/src/main/java/de/codecentric/boot/admin/services/SpringBootAdminRegistrator.java
View file @
c17a5d53
...
...
@@ -57,7 +57,7 @@ public class SpringBootAdminRegistrator {
ResponseEntity
<
Application
>
response
=
template
.
postForEntity
(
adminUrl
,
app
,
Application
.
class
);
if
(
response
.
getStatusCode
().
equals
(
HttpStatus
.
CREATED
))
{
LOGGER
.
info
(
"Application registered itself as {}"
,
response
.
getBody
());
LOGGER
.
debug
(
"Application registered itself as {}"
,
response
.
getBody
());
return
true
;
}
else
if
(
response
.
getStatusCode
().
equals
(
HttpStatus
.
CONFLICT
))
{
...
...
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