Skip to content

Commit 3b4dd7d

Browse files
author
Toben Archer
committed
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.
1 parent c4021b0 commit 3b4dd7d

File tree

9 files changed

+1
-21
lines changed

9 files changed

+1
-21
lines changed

O365/attachment.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,12 @@
33
binary of the file directly. The file is stored locally as a string using base64 encoding.
44
'''
55

6-
#from O365 import Message
7-
86
import base64
97
import logging
108
import json
119
import requests
1210
import sys
1311

14-
#from O365 import Message
15-
16-
logging.basicConfig(filename='o365.log',level=logging.DEBUG)
17-
1812
log = logging.getLogger(__name__)
1913

2014
class Attachment( object ):

O365/cal.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
from O365.event import Event
88

9-
logging.basicConfig(filename='o365.log',level=logging.DEBUG)
10-
119
log = logging.getLogger(__name__)
1210

1311
class Calendar( object ):

O365/contact.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
import logging
55
import time
66

7-
logging.basicConfig(filename='o365.log',level=logging.DEBUG)
8-
97
log = logging.getLogger(__name__)
108

119
class Contact( object ):

O365/event.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
import requests
66
import time
77

8-
logging.basicConfig(filename='o365.log',level=logging.DEBUG)
9-
108
log = logging.getLogger(__name__)
119

1210
class Event( object ):

O365/group.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
import json
44
import requests
55

6-
logging.basicConfig(filename='o365.log',level=logging.DEBUG)
7-
86
log = logging.getLogger(__name__)
97

108
class Group( object ):

O365/inbox.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
import json
44
import requests
55

6-
logging.basicConfig(filename='o365.log',level=logging.DEBUG)
7-
86
log = logging.getLogger(__name__)
97

108
class Inbox( object ):

O365/message.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
import json
66
import requests
77

8-
logging.basicConfig(filename='o365.log',level=logging.DEBUG)
9-
108
log = logging.getLogger(__name__)
119

1210
class Message( object ):

O365/schedule.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
import json
44
import requests
55

6-
logging.basicConfig(filename='o365.log',level=logging.DEBUG)
7-
86
log = logging.getLogger(__name__)
97

108
class Schedule( object ):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
https://github.com/Narcolapser/python-o365'''
3434

3535
setup(name='O365',
36-
version='0.9.2',
36+
version='0.9.4',
3737
description='Python library for working with Microsoft Office 365',
3838
long_description=long_desc,
3939
author='Toben Archer',

0 commit comments

Comments
 (0)