Skip to content

Commit

Permalink
Replace bulk of uses of 'zLOG' with equivalent Python 'logging' modul…
Browse files Browse the repository at this point in the history
…e usage.

Exceptions:

  - 'ZServer' code which uses the 'register_subsystem' stuff.

  - Code which imports custom log levels (BLATHER, TRACE), now pulled from
    'zLOG.EventLogger'.

  - Test jigs which play with zLOG's 'write_log'.

  - Usage in 'svn:externals' modules (ZODB, etc.)
  • Loading branch information
tseaver committed Jun 24, 2006
1 parent 98e0cd0 commit f1fcd29
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions TemporaryStorage.py
Expand Up @@ -21,8 +21,10 @@
"""

__version__ ='$Revision: 1.1.2.2 $'[11:-2]
import logging
logger = logging.getLogger('TemporaryStorage')

from zLOG import LOG, BLATHER
from zLOG.EventLogger import CUSTOM_BLATHER
from ZODB.serialize import referencesf
from ZODB import POSException
from ZODB.BaseStorage import BaseStorage
Expand Down Expand Up @@ -182,7 +184,7 @@ def store(self, oid, serial, data, version, transaction):
if version:
# we allow a version to be in use although we don't
# support versions in the storage.
LOG('TemporaryStorage', BLATHER,
logging.log(CUSTOM_BLATHER,
('versions in use with TemporaryStorage although Temporary'
'Storage doesnt support versions'),
)
Expand Down

0 comments on commit f1fcd29

Please sign in to comment.