Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
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
DEMO
spring-boot
Commits
4a738e3c
Commit
4a738e3c
authored
Mar 05, 2019
by
Johnny Lim
Committed by
Stephane Nicoll
Mar 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
Closes gh-16094
parent
d83a614b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
using-spring-boot.adoc
...spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc
+1
-1
LogbackLoggingSystemTests.java
...ework/boot/logging/logback/LogbackLoggingSystemTests.java
+2
-2
No files found.
spring-boot-project/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc
View file @
4a738e3c
...
...
@@ -767,7 +767,7 @@ special classloader, then it is considered a "`production application`". If that
apply to you (i.e. if you run your application from a container), consider excluding
devtools or set the `-Dspring.devtools.restart.enabled=false` system property.
TIP: Flagging the dependency as optional in Maven or using a custom`developmentOnly`
TIP: Flagging the dependency as optional in Maven or using a custom
`developmentOnly`
configuration in Gradle (as shown above) is a best practice that prevents devtools from
being transitively applied to other modules that use your project.
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/logback/LogbackLoggingSystemTests.java
View file @
4a738e3c
...
...
@@ -471,7 +471,7 @@ public class LogbackLoggingSystemTests extends AbstractLoggingSystemTests {
testTotalSizeCapProperty
(
String
.
valueOf
(
10
*
1024
*
1024
),
"10 MB"
);
}
private
void
testTotalSizeCapProperty
(
String
sizeValue
,
String
expectFileSize
)
{
private
void
testTotalSizeCapProperty
(
String
sizeValue
,
String
expect
ed
FileSize
)
{
MockEnvironment
environment
=
new
MockEnvironment
();
environment
.
setProperty
(
"logging.file.total-size-cap"
,
sizeValue
);
LoggingInitializationContext
loggingInitializationContext
=
new
LoggingInitializationContext
(
...
...
@@ -482,7 +482,7 @@ public class LogbackLoggingSystemTests extends AbstractLoggingSystemTests {
this
.
logger
.
info
(
"Hello world"
);
assertThat
(
getLineWithText
(
file
,
"Hello world"
)).
contains
(
"INFO"
);
assertThat
(
ReflectionTestUtils
.
getField
(
getRollingPolicy
(),
"totalSizeCap"
)
.
toString
()).
isEqualTo
(
expectFileSize
);
.
toString
()).
isEqualTo
(
expect
ed
FileSize
);
}
@Test
...
...
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