Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
Klaus Wölfel
slapos.core
Commits
a8f83ef9
Commit
a8f83ef9
authored
Feb 17, 2015
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slap lib: disable 'Unverified HTTPS request is being made' messages.
parent
4d682faa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
slapos/slap/slap.py
slapos/slap/slap.py
+2
-0
No files found.
slapos/slap/slap.py
View file @
a8f83ef9
...
@@ -51,6 +51,8 @@ from xml_marshaller import xml_marshaller
...
@@ -51,6 +51,8 @@ from xml_marshaller import xml_marshaller
from
uritemplate
import
expand
from
uritemplate
import
expand
import
requests
import
requests
# silence messages like 'Unverified HTTPS request is being made'
requests
.
packages
.
urllib3
.
disable_warnings
()
# silence messages like 'Starting connection' that are logged with INFO
# silence messages like 'Starting connection' that are logged with INFO
urllib3_logger
=
logging
.
getLogger
(
'requests.packages.urllib3'
)
urllib3_logger
=
logging
.
getLogger
(
'requests.packages.urllib3'
)
urllib3_logger
.
setLevel
(
logging
.
WARNING
)
urllib3_logger
.
setLevel
(
logging
.
WARNING
)
...
...
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