Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.devtools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.devtools
Commits
018e572d
Commit
018e572d
authored
5 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[build] Avoid double-logging after importing conda modules
parent
a700c950
No related branches found
No related tags found
1 merge request
!126
Implemented a mechanism to run a dependency graph
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/devtools/build.py
+14
-1
14 additions, 1 deletion
bob/devtools/build.py
with
14 additions
and
1 deletion
bob/devtools/build.py
+
14
−
1
View file @
018e572d
...
...
@@ -14,12 +14,23 @@ import platform
import
subprocess
import
logging
logger
=
logging
.
getLogger
(
__name__
)
import
yaml
import
distutils.version
def
remove_conda_loggers
():
"""
Cleans-up conda API logger handlers to avoid logging repetition
"""
z
=
logging
.
getLogger
()
#conda places their handlers inside root
if
z
.
handlers
:
handler
=
z
.
handlers
[
0
]
z
.
removeHandler
(
handler
)
logger
.
debug
(
"
Removed conda logger handler at %s
"
,
handler
)
import
conda_build.api
remove_conda_loggers
()
def
comment_cleanup
(
lines
):
...
...
@@ -83,6 +94,7 @@ def next_build_number(channel_url, basename):
"""
from
conda.exports
import
get_index
remove_conda_loggers
()
# get the channel index
logger
.
debug
(
"
Downloading channel index from %s
"
,
channel_url
)
...
...
@@ -164,6 +176,7 @@ def make_conda_config(config, python, append_file, condarc_options):
"""
from
conda_build.conda_interface
import
url_path
remove_conda_loggers
()
retval
=
conda_build
.
api
.
get_or_merge_config
(
None
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment