Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alecs_myu
erp5
Commits
f3e17cc8
Commit
f3e17cc8
authored
Jul 09, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
util: testnode: runScalabilityTestSuite: Fix log_path
parent
51f1540f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
erp5/util/scalability/runScalabilityTestSuite.py
erp5/util/scalability/runScalabilityTestSuite.py
+3
-1
No files found.
erp5/util/scalability/runScalabilityTestSuite.py
View file @
f3e17cc8
...
@@ -36,6 +36,8 @@ class ScalabilityLauncher(object):
...
@@ -36,6 +36,8 @@ class ScalabilityLauncher(object):
self
.
__argumentNamespace
=
self
.
_parseArguments
(
argparse
.
ArgumentParser
(
self
.
__argumentNamespace
=
self
.
_parseArguments
(
argparse
.
ArgumentParser
(
description
=
'Run ERP5 benchmarking scalability suites.'
))
description
=
'Run ERP5 benchmarking scalability suites.'
))
# Create Logger
# Create Logger
log_path
=
os
.
path
.
join
(
self
.
__argumentNamespace
.
log_path
,
"runScalabilityTestSuite.log"
)
logger_format
=
'%(asctime)s %(name)-13s: %(levelname)-8s %(message)s'
logger_format
=
'%(asctime)s %(name)-13s: %(levelname)-8s %(message)s'
formatter
=
logging
.
Formatter
(
logger_format
)
formatter
=
logging
.
Formatter
(
logger_format
)
logging
.
basicConfig
(
level
=
logging
.
INFO
,
logging
.
basicConfig
(
level
=
logging
.
INFO
,
...
@@ -43,7 +45,7 @@ class ScalabilityLauncher(object):
...
@@ -43,7 +45,7 @@ class ScalabilityLauncher(object):
logger
=
logging
.
getLogger
(
'runScalabilityTestSuite'
)
logger
=
logging
.
getLogger
(
'runScalabilityTestSuite'
)
logger
.
addHandler
(
logging
.
NullHandler
())
logger
.
addHandler
(
logging
.
NullHandler
())
file_handler
=
logging
.
handlers
.
RotatingFileHandler
(
file_handler
=
logging
.
handlers
.
RotatingFileHandler
(
filename
=
self
.
__argumentNamespace
.
log_path
+
"runScalabilityTestSuite.log"
,
filename
=
log_path
,
maxBytes
=
20000000
,
backupCount
=
4
)
maxBytes
=
20000000
,
backupCount
=
4
)
file_handler
.
setFormatter
(
formatter
)
file_handler
.
setFormatter
(
formatter
)
logger
.
addHandler
(
file_handler
)
logger
.
addHandler
(
file_handler
)
...
...
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