Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
I've turned logging off by default. This comes as a feature request from a
@sven700c but also a realization of how things normally ought run. Since
this library is meant to be used as a building block for other
applications it shouldn't have it's own independant logging system. By
turning logging off by default no log is made. But if the user decides he
wants a log, can create one and then the O365 library will attach to it.
  • Loading branch information
Toben Archer committed Nov 8, 2016
1 parent c4021b0 commit 3b4dd7d
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 21 deletions.
6 changes: 0 additions & 6 deletions O365/attachment.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,12 @@
binary of the file directly. The file is stored locally as a string using base64 encoding.
'''

#from O365 import Message

import base64
import logging
import json
import requests
import sys

#from O365 import Message

logging.basicConfig(filename='o365.log',level=logging.DEBUG)

log = logging.getLogger(__name__)

class Attachment( object ):
Expand Down
2 changes: 0 additions & 2 deletions O365/cal.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

from O365.event import Event

logging.basicConfig(filename='o365.log',level=logging.DEBUG)

log = logging.getLogger(__name__)

class Calendar( object ):
Expand Down
2 changes: 0 additions & 2 deletions O365/contact.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import logging
import time

logging.basicConfig(filename='o365.log',level=logging.DEBUG)

log = logging.getLogger(__name__)

class Contact( object ):
Expand Down
2 changes: 0 additions & 2 deletions O365/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
import requests
import time

logging.basicConfig(filename='o365.log',level=logging.DEBUG)

log = logging.getLogger(__name__)

class Event( object ):
Expand Down
2 changes: 0 additions & 2 deletions O365/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import json
import requests

logging.basicConfig(filename='o365.log',level=logging.DEBUG)

log = logging.getLogger(__name__)

class Group( object ):
Expand Down
2 changes: 0 additions & 2 deletions O365/inbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import json
import requests

logging.basicConfig(filename='o365.log',level=logging.DEBUG)

log = logging.getLogger(__name__)

class Inbox( object ):
Expand Down
2 changes: 0 additions & 2 deletions O365/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
import json
import requests

logging.basicConfig(filename='o365.log',level=logging.DEBUG)

log = logging.getLogger(__name__)

class Message( object ):
Expand Down
2 changes: 0 additions & 2 deletions O365/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import json
import requests

logging.basicConfig(filename='o365.log',level=logging.DEBUG)

log = logging.getLogger(__name__)

class Schedule( object ):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
https://github.com/Narcolapser/python-o365'''

setup(name='O365',
version='0.9.2',
version='0.9.4',
description='Python library for working with Microsoft Office 365',
long_description=long_desc,
author='Toben Archer',
Expand Down

0 comments on commit 3b4dd7d

Please sign in to comment.