Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zodb
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
Joshua
zodb
Commits
bea056ef
Commit
bea056ef
authored
Apr 13, 2004
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove some of the cruftier aspects of logging configuration; these
aren't needed any more
parent
45db25bf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
23 deletions
+1
-23
test.py
test.py
+1
-23
No files found.
test.py
View file @
bea056ef
...
@@ -605,19 +605,12 @@ def main(module_filter, test_filter, libdir):
...
@@ -605,19 +605,12 @@ def main(module_filter, test_filter, libdir):
# Skip this; zLOG will eventually win, and coordinating
# Skip this; zLOG will eventually win, and coordinating
# initialization is a loosing battle.
# initialization is a loosing battle.
#
configure_logging()
configure_logging
()
# Initialize the path and cwd
# Initialize the path and cwd
global
pathinit
global
pathinit
pathinit
=
PathInit
(
build
,
build_inplace
,
libdir
)
pathinit
=
PathInit
(
build
,
build_inplace
,
libdir
)
# We need to make sure zLOG takes its turn at initializing the
# logging package before we start calling any logging methods, so
# we don't find that it changes at some arbitrary time in the
# future.
import
zLOG
zLOG
.
initialize
()
files
=
find_tests
(
module_filter
)
files
=
find_tests
(
module_filter
)
files
.
sort
()
files
.
sort
()
...
@@ -661,21 +654,6 @@ def configure_logging():
...
@@ -661,21 +654,6 @@ def configure_logging():
level
=
int
(
os
.
environ
[
"LOGGING"
])
level
=
int
(
os
.
environ
[
"LOGGING"
])
logging
.
getLogger
().
setLevel
(
level
)
logging
.
getLogger
().
setLevel
(
level
)
if
os
.
path
.
exists
(
logini
):
# Hack: The ZEO tests need to pass the logging config to
# spawned processes. We haven't thought of a better way to do
# it than using environment variables.
os
.
environ
[
"LOGINI"
]
=
logini
# Re-write the filenames in the environment so they don't wander
# when specified as relative paths and we os.chdir().
if
os
.
environ
.
has_key
(
"STUPID_LOG_FILE"
):
os
.
environ
[
"STUPID_LOG_FILE"
]
=
os
.
path
.
abspath
(
os
.
environ
[
"STUPID_LOG_FILE"
])
if
os
.
environ
.
has_key
(
"EVENT_LOG_FILE"
):
os
.
environ
[
"EVENT_LOG_FILE"
]
=
os
.
path
.
abspath
(
os
.
environ
[
"EVENT_LOG_FILE"
])
def
process_args
(
argv
=
None
):
def
process_args
(
argv
=
None
):
import
getopt
import
getopt
...
...
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