Skip to content

Commit

Permalink
removed requirement for logger package as its not used. changed Logge…
Browse files Browse the repository at this point in the history
…r class to CFlogger to remove confusion - issues/30
mahtin committed Aug 23, 2017
1 parent 90e3ea5 commit 16129a3
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Change Log

- 2017-08-23 02:25:51 -0700 [90e3ea5](https://github.com/cloudflare/python-cloudflare/commit/90e3ea57e473b2cf332b7cc5ed22d5bf66ffe36a) added a delete dns record example - issues/33
- 2017-08-22 05:10:15 -0700 [3fc396c](https://github.com/cloudflare/python-cloudflare/commit/3fc396cb685bf57ce094299a7505216d78624ac2) missing chmod +x on examples/example_paging_thru_zones.py
- 2017-08-22 05:09:21 -0700 [1e13e8d](https://github.com/cloudflare/python-cloudflare/commit/1e13e8d5cbbe0c37f0a9d563869d51d91858cd50) CHANGELOG.md pushed to github
- 2017-08-22 04:51:51 -0700 [3a03516](https://github.com/cloudflare/python-cloudflare/commit/3a035163d3613756e8bb3e4bc26fb3642091861c) CHANGELOG.md pushed to github
2 changes: 1 addition & 1 deletion CloudFlare/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
""" Cloudflare v4 API"""
from __future__ import absolute_import

__version__ = '1.6.0'
__version__ = '1.6.1'

from .cloudflare import CloudFlare

4 changes: 2 additions & 2 deletions CloudFlare/cloudflare.py
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
import json
import requests

from .logger import Logger
from .logging_helper import CFlogger
from .utils import user_agent, sanitize_secrets
from .read_configs import read_configs
from .api_v4 import api_v4
@@ -30,7 +30,7 @@ def __init__(self, email, token, certtoken, base_url, debug, raw):
self.user_agent = user_agent()

if debug:
self.logger = Logger(debug).getLogger()
self.logger = CFlogger(debug).getLogger()
else:
self.logger = None

2 changes: 1 addition & 1 deletion CloudFlare/logger.py → CloudFlare/logging_helper.py
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
DEBUG = 0
INFO = 1

class Logger(object):
class CFlogger(object):
""" Logging for Cloudflare API"""

def __init__(self, level):
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -32,7 +32,7 @@ def main():
#package_data={'cloudflare-examples': ["examples/*"]},
include_package_data=True,
#data_files = [('man/man1', ['cli4/cli4.man'])],
install_requires=['requests', 'logger', 'future', 'pyyaml'],
install_requires=['requests', 'future', 'pyyaml'],
keywords='cloudflare',
entry_points={
'console_scripts': [

0 comments on commit 16129a3

Please sign in to comment.