Skip to content

Add proxy-server support #85

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vv-p
Copy link

@vv-p vv-p commented Apr 10, 2019

Add proxy-server support for accessing slack from an internal network without direct internet access.

@@ -31,7 +35,7 @@ def emit(self, record):
"""
try:
slack_data = self.format(record)
requests.post(self.hook_url, json=slack_data)
requests.post(self.hook_url, json=slack_data, proxies=self._proxies)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E501 line too long (80 > 79 characters)

@codecov-io
Copy link

codecov-io commented Apr 10, 2019

Codecov Report

Merging #85 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #85   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           3      3           
  Lines          53     54    +1     
  Branches        2      2           
=====================================
+ Hits           53     54    +1
Impacted Files Coverage Δ
webhook_logger/slack.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1ff04a3...9c156a5. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants