[Pydev-users] [pydev - Users] Unexpected marked errors on logger methods?
Brought to you by:
fabioz
From: SourceForge.net <no...@so...> - 2006-09-08 18:11:19
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=3905932 By: davmp I'm seeing a number of marked errors related to logger methods such as calling logger.debug(), etc. I'm not sure if this is due to something I'm doing or whether there is something wrong with PyDev. Advice is appreciated. Here is a description of the typical pattern I'm using: * In the root level package for an application called 'myapp', define a logger for the application in a module called logger.py like this: import logging logger = logging.getLogger('myapp') * In other packages or modules within that application, import that logger and try to log to it using any of the info, debug, exception, etc. methods like this: from myapp.logger import logger class Foo(object): def __init__(self): logger.debug('Creating Foo: %s', self) PyDev (or is it PyDev extensions?) always marks the call to the debug method on this last line as an 'Undefined variable from import: debug'. How do I avoid this? ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=293649 |