You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by jp...@apache.org on 2016/12/29 23:14:52 UTC

svn commit: r1776508 - in /chemistry/cmislib/trunk/src/cmislib: atompub/binding.py browser/binding.py domain.py model.py

Author: jpotts
Date: Thu Dec 29 23:14:51 2016
New Revision: 1776508

URL: http://svn.apache.org/viewvc?rev=1776508&view=rev
Log:
Change all logger statements from info to debug to close #CMIS-832. Correct any getLogger statements that point to old class names.

Modified:
    chemistry/cmislib/trunk/src/cmislib/atompub/binding.py
    chemistry/cmislib/trunk/src/cmislib/browser/binding.py
    chemistry/cmislib/trunk/src/cmislib/domain.py
    chemistry/cmislib/trunk/src/cmislib/model.py

Modified: chemistry/cmislib/trunk/src/cmislib/atompub/binding.py
URL: http://svn.apache.org/viewvc/chemistry/cmislib/trunk/src/cmislib/atompub/binding.py?rev=1776508&r1=1776507&r2=1776508&view=diff
==============================================================================
--- chemistry/cmislib/trunk/src/cmislib/atompub/binding.py (original)
+++ chemistry/cmislib/trunk/src/cmislib/atompub/binding.py Thu Dec 29 23:14:51 2016
@@ -40,7 +40,7 @@ import StringIO
 import logging
 from xml.dom import minidom
 
-moduleLogger = logging.getLogger('cmislib.atompub_binding')
+moduleLogger = logging.getLogger('cmislib.atompub.binding')
 
 # Namespaces
 ATOM_NS = 'http://www.w3.org/2005/Atom'
@@ -228,7 +228,7 @@ class RepositoryService(RepositoryServic
 
     def __init__(self):
         self._uriTemplates = {}
-        self.logger = logging.getLogger('cmislib.atompub_binding.RepositoryService')
+        self.logger = logging.getLogger('cmislib.atompub.binding.RepositoryService')
 
     def reload(self, obj):
 
@@ -321,8 +321,8 @@ class AtomPubCmisObject(CmisObject):
         self._allowableActions = {}
         self.xmlDoc = xmlDoc
         self._kwargs = kwargs
-        self.logger = logging.getLogger('cmislib.atompub_binding.AtomPubCmisObject')
-        self.logger.info('Creating an instance of CmisObject')
+        self.logger = logging.getLogger('cmislib.atompub.binding.AtomPubCmisObject')
+        self.logger.debug('Creating an instance of AtomPubCmisObject')
 
     def __str__(self):
         """To string"""
@@ -953,8 +953,8 @@ class AtomPubRepository(object):
         self._permMap = {}
         self._permissions = None
         self._propagation = None
-        self.logger = logging.getLogger('cmislib.model.Repository')
-        self.logger.info('Creating an instance of Repository')
+        self.logger = logging.getLogger('cmislib.atompub.binding.AtomPubRepository')
+        self.logger.debug('Creating an instance of AtomPubRepository')
 
     def __str__(self):
         """To string"""
@@ -2024,8 +2024,8 @@ class AtomPubResultSet(ResultSet):
         self._repository = repository
         self._xmlDoc = xmlDoc
         self._results = []
-        self.logger = logging.getLogger('cmislib.model.ResultSet')
-        self.logger.info('Creating an instance of ResultSet')
+        self.logger = logging.getLogger('cmislib.atompub.binding.AtomPubResultSet')
+        self.logger.debug('Creating an instance of AtomPubResultSet')
 
     def __iter__(self):
         """ Iterator for the result set """
@@ -3133,8 +3133,8 @@ class AtomPubObjectType(ObjectType):
         self._kwargs = None
         self._typeId = typeId
         self.xmlDoc = xmlDoc
-        self.logger = logging.getLogger('cmislib.model.ObjectType')
-        self.logger.info('Creating an instance of ObjectType')
+        self.logger = logging.getLogger('cmislib.atompub.binding.AtomPubObjectType')
+        self.logger.debug('Creating an instance of AtomPubObjectType')
 
     def __str__(self):
         """To string"""
@@ -3344,8 +3344,8 @@ class AtomPubProperty(Property):
     def __init__(self, propNode):
         """Constructor"""
         self.xmlDoc = propNode
-        self.logger = logging.getLogger('cmislib.model.Property')
-        self.logger.info('Creating an instance of Property')
+        self.logger = logging.getLogger('cmislib.atompub.binding.AtomPubProperty')
+        self.logger.debug('Creating an instance of AtomPubProperty')
 
     def __str__(self):
         """To string"""
@@ -3458,8 +3458,8 @@ class AtomPubACL(ACL):
         else:
             self._xmlDoc = None
 
-        self.logger = logging.getLogger('cmislib.model.ACL')
-        self.logger.info('Creating an instance of ACL')
+        self.logger = logging.getLogger('cmislib.atompub.binding.AtomPubACL')
+        self.logger.debug('Creating an instance of AtomPubACL')
 
     def addEntry(self, principalId, access, direct=True):
 
@@ -3685,8 +3685,8 @@ class AtomPubChangeEntry(ChangeEntry):
         self._changeEntryId = None
         self._changeType = None
         self._changeTime = None
-        self.logger = logging.getLogger('cmislib.model.ChangeEntry')
-        self.logger.info('Creating an instance of ChangeEntry')
+        self.logger = logging.getLogger('cmislib.atompub.binding.AtomPubChangeEntry')
+        self.logger.debug('Creating an instance of AtomPubChangeEntry')
 
     def getId(self):
         """
@@ -3862,8 +3862,8 @@ class AtomPubRendition(Rendition):
     def __init__(self, propNode):
         """Constructor"""
         self.xmlDoc = propNode
-        self.logger = logging.getLogger('cmislib.model.Rendition')
-        self.logger.info('Creating an instance of Rendition')
+        self.logger = logging.getLogger('cmislib.atompub.binding.AtomPubRendition')
+        self.logger.debug('Creating an instance of AtomPubRendition')
 
     def __str__(self):
         """To string"""

Modified: chemistry/cmislib/trunk/src/cmislib/browser/binding.py
URL: http://svn.apache.org/viewvc/chemistry/cmislib/trunk/src/cmislib/browser/binding.py?rev=1776508&r1=1776507&r2=1776508&view=diff
==============================================================================
--- chemistry/cmislib/trunk/src/cmislib/browser/binding.py (original)
+++ chemistry/cmislib/trunk/src/cmislib/browser/binding.py Thu Dec 29 23:14:51 2016
@@ -167,7 +167,7 @@ class BrowserCmisObject(object):
         self.data = data
         self._extArgs = kwargs
         self.logger = logging.getLogger('cmislib.browser.binding.BrowserCmisObject')
-        self.logger.info('Creating an instance of CmisObject')
+        self.logger.debug('Creating an instance of BrowserCmisObject')
 
     def __str__(self):
         """To string"""
@@ -594,7 +594,7 @@ class BrowserRepository(object):
         self._permissions = None
         self._propagation = None
         self.logger = logging.getLogger('cmislib.browser.binding.BrowserRepository')
-        self.logger.info('Creating an instance of Repository')
+        self.logger.debug('Creating an instance of BrowserRepository')
 
     def __str__(self):
         """To string"""
@@ -1460,7 +1460,7 @@ class BrowserResultSet(object):
         self._serializer = serializer
         self._results = []
         self.logger = logging.getLogger('cmislib.browser.binding.BrowserResultSet')
-        self.logger.info('Creating an instance of ResultSet')
+        self.logger.debug('Creating an instance of BrowserResultSet')
 
     def __iter__(self):
         """ Iterator for the result set """
@@ -2449,7 +2449,7 @@ class BrowserObjectType(ObjectType):
         self._typeId = typeId
         self.data = data
         self.logger = logging.getLogger('cmislib.browser.binding.BrowserObjectType')
-        self.logger.info('Creating an instance of BrowserObjectType')
+        self.logger.debug('Creating an instance of BrowserObjectType')
 
     def __str__(self):
         """To string"""
@@ -2631,7 +2631,7 @@ class BrowserProperty(object):
         """Constructor"""
         self.data = data
         self.logger = logging.getLogger('cmislib.browser.binding.BrowserProperty')
-        self.logger.info('Creating an instance of BrowserProperty')
+        self.logger.debug('Creating an instance of BrowserProperty')
 
     def __str__(self):
         """To string"""
@@ -2734,7 +2734,7 @@ class BrowserACL(ACL):
             self._data = None
 
         self.logger = logging.getLogger('cmislib.browser.binding.BrowserACL')
-        self.logger.info('Creating an instance of ACL')
+        self.logger.debug('Creating an instance of BrowserACL')
 
     def _getEntriesFromData(self):
 
@@ -2883,8 +2883,8 @@ class BrowserChangeEntry(ChangeEntry):
         self._changeEntryId = None
         self._changeType = None
         self._changeTime = None
-        self.logger = logging.getLogger('cmislib.model.ChangeEntry')
-        self.logger.info('Creating an instance of ChangeEntry')
+        self.logger = logging.getLogger('cmislib.browser.binding.BrowserChangeEntry')
+        self.logger.debug('Creating an instance of BrowserChangeEntry')
 
     def getId(self):
         """
@@ -3029,7 +3029,7 @@ class BrowserRendition(object):
         """Constructor"""
         self.data = data
         self.logger = logging.getLogger('cmislib.browser.binding.BrowserRendition')
-        self.logger.info('Creating an instance of Rendition')
+        self.logger.debug('Creating an instance of BrowserRendition')
 
     def __str__(self):
         """To string"""

Modified: chemistry/cmislib/trunk/src/cmislib/domain.py
URL: http://svn.apache.org/viewvc/chemistry/cmislib/trunk/src/cmislib/domain.py?rev=1776508&r1=1776507&r2=1776508&view=diff
==============================================================================
--- chemistry/cmislib/trunk/src/cmislib/domain.py (original)
+++ chemistry/cmislib/trunk/src/cmislib/domain.py Thu Dec 29 23:14:51 2016
@@ -329,8 +329,8 @@ class Repository(object):
         self._permMap = {}
         self._permissions = None
         self._propagation = None
-        self.logger = logging.getLogger('cmislib.model.Repository')
-        self.logger.info('Creating an instance of Repository')
+        self.logger = logging.getLogger('cmislib.domain.Repository')
+        self.logger.debug('Creating an instance of Repository')
 
     def __str__(self):
         """To string"""
@@ -2006,8 +2006,8 @@ class ACE(object):
                 self._permissions = permissions
         self._direct = direct
 
-        self.logger = logging.getLogger('cmislib.model.ACE')
-        self.logger.info('Creating an instance of ACE for %s' % principalId)
+        self.logger = logging.getLogger('cmislib.domain.ACE')
+        self.logger.debug('Creating an instance of ACE for %s' % principalId)
 
     @property
     def principalId(self):

Modified: chemistry/cmislib/trunk/src/cmislib/model.py
URL: http://svn.apache.org/viewvc/chemistry/cmislib/trunk/src/cmislib/model.py?rev=1776508&r1=1776507&r2=1776508&view=diff
==============================================================================
--- chemistry/cmislib/trunk/src/cmislib/model.py (original)
+++ chemistry/cmislib/trunk/src/cmislib/model.py Thu Dec 29 23:14:51 2016
@@ -57,7 +57,7 @@ class CmisClient(object):
         else:
             self.binding = AtomPubBinding(**kwargs)
         self.logger = logging.getLogger('cmislib.model.CmisClient')
-        self.logger.info('Creating an instance of CmisClient')
+        self.logger.debug('Creating an instance of CmisClient')
 
     def __str__(self):
         """To string"""