Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
R
router_services
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nova
router_services
Commits
b72f8b14
Commit
b72f8b14
authored
Dec 09, 2013
by
Sigmund Augdal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix formatting for log file handlers
parent
9df685c3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
0 deletions
+3
-0
dhcp_configurator.py
dhcp_configurator.py
+1
-0
iptables_configurator.py
iptables_configurator.py
+1
-0
neighbors.py
neighbors.py
+1
-0
No files found.
dhcp_configurator.py
View file @
b72f8b14
...
...
@@ -38,6 +38,7 @@ class Generator(object):
if
logfile
:
handler
=
logging
.
handlers
.
RotatingFileHandler
(
logfile
,
maxBytes
=
10
*
1024
**
3
,
backupCount
=
5
)
handler
.
setFormatter
(
logging
.
getLogger
(
""
).
handlers
[
0
].
formatter
)
logging
.
getLogger
(
""
).
addHandler
(
handler
)
self
.
range
=
[
150
,
200
]
self
.
prefix
=
"158.38.213."
...
...
iptables_configurator.py
View file @
b72f8b14
...
...
@@ -26,6 +26,7 @@ class Generator(object):
if
logfile
:
handler
=
logging
.
handlers
.
RotatingFileHandler
(
logfile
,
maxBytes
=
10
*
1024
**
3
,
backupCount
=
5
)
handler
.
setFormatter
(
logging
.
getLogger
(
""
).
handlers
[
0
].
formatter
)
logging
.
getLogger
(
""
).
addHandler
(
handler
)
# maps security group id from etcd to the name of a ipset containing its members
self
.
group_members_groups
=
{}
...
...
neighbors.py
View file @
b72f8b14
...
...
@@ -105,6 +105,7 @@ def main(args):
if
args
.
daemonize
:
handler
=
logging
.
handlers
.
RotatingFileHandler
(
args
.
logfile
,
maxBytes
=
10
*
1024
**
3
,
backupCount
=
5
)
handler
.
setFormatter
(
logging
.
getLogger
(
""
).
handlers
[
0
].
formatter
)
logging
.
getLogger
(
""
).
addHandler
(
handler
)
cache
=
NeighborCache
(
args
.
cert
,
args
.
key
,
args
.
cacert
,
args
.
interface
,
args
.
routers
)
...
...
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