Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Kea
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Adam Osuchowski
Kea
Commits
3493d041
Commit
3493d041
authored
Aug 11, 2017
by
Thomas Markwalder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[5324] Upped the default log size to 10MB
parent
2e2cb37a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
doc/guide/logging.xml
doc/guide/logging.xml
+2
-2
src/lib/dhcpsrv/logging_info.h
src/lib/dhcpsrv/logging_info.h
+1
-1
src/lib/dhcpsrv/tests/logging_info_unittest.cc
src/lib/dhcpsrv/tests/logging_info_unittest.cc
+2
-2
src/lib/dhcpsrv/tests/logging_unittest.cc
src/lib/dhcpsrv/tests/logging_unittest.cc
+1
-1
No files found.
doc/guide/logging.xml
View file @
3493d041
...
...
@@ -635,8 +635,8 @@
is renamed ".2", etc. This is referred to as rotation.
</para>
<para>
The default value is
204800. This is also the smallest value that
may be specified without disabling rotation.
Any value less than
The default value is
10240000 (10MB). The smallest value that may
be specified without disabling rotation is 204800.
Any value less than
this, including 0, disables rotation.
</para>
<note>
...
...
src/lib/dhcpsrv/logging_info.h
View file @
3493d041
...
...
@@ -45,7 +45,7 @@ struct LoggingDestination : public isc::data::CfgToElement {
/// @brief Default constructor.
LoggingDestination
()
:
output_
(
"stdout"
),
maxver_
(
1
),
maxsize_
(
2048
00
),
flush_
(
true
)
{
:
output_
(
"stdout"
),
maxver_
(
1
),
maxsize_
(
102400
00
),
flush_
(
true
)
{
}
/// @brief Unparse a configuration object
...
...
src/lib/dhcpsrv/tests/logging_info_unittest.cc
View file @
3493d041
...
...
@@ -74,7 +74,7 @@ TEST_F(LoggingInfoTest, defaults) {
std
::
string
header
=
"{
\n
"
"
\"
name
\"
:
\"
kea
\"
,
\n
"
"
\"
output_options
\"
: [ {
\n
"
"
\"
output
\"
:
\"
stdout
\"
,
\n
\"
maxsize
\"
:
2048
00,
\n
"
"
\"
output
\"
:
\"
stdout
\"
,
\n
\"
maxsize
\"
:
102400
00,
\n
"
"
\"
maxver
\"
: 1,
\n
\"
flush
\"
: true } ],
\n
"
"
\"
severity
\"
:
\"
"
;
std
::
string
dbglvl
=
"
\"
,
\n\"
debuglevel
\"
: "
;
...
...
@@ -91,7 +91,7 @@ TEST_F(LoggingInfoTest, defaults) {
ASSERT_EQ
(
1
,
info_verbose
.
destinations_
.
size
());
EXPECT_EQ
(
"stdout"
,
info_verbose
.
destinations_
[
0
].
output_
);
EXPECT_EQ
(
2048
00
,
info_verbose
.
destinations_
[
0
].
maxsize_
);
EXPECT_EQ
(
102400
00
,
info_verbose
.
destinations_
[
0
].
maxsize_
);
EXPECT_EQ
(
1
,
info_verbose
.
destinations_
[
0
].
maxver_
);
expected
=
header
+
"DEBUG"
+
dbglvl
+
"99"
+
trailer
;
...
...
src/lib/dhcpsrv/tests/logging_unittest.cc
View file @
3493d041
...
...
@@ -73,7 +73,7 @@ class LoggingTest : public ::testing::Test {
};
const
char
*
LoggingTest
::
TEST_LOG_NAME
=
"kea.test.log"
;
const
int
LoggingTest
::
TEST_MAX_SIZE
=
20
7800
;
// Slightly larger than default
const
int
LoggingTest
::
TEST_MAX_SIZE
=
20
4800
;
// Smallest without disabling rotation
const
int
LoggingTest
::
TEST_MAX_VERS
=
2
;
// More than the default of 1
// Tests that the spec file is valid.
...
...
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