Message99212
| Author |
abakker |
| Recipients |
abakker |
| Date |
2010年02月11日.15:09:43 |
| SpamBayes Score |
0.00016684325 |
| Marked as misclassified |
No |
| Message-id |
<1265900984.97.0.533817039299.issue7909@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I encountered this when somebody used:
logging.basicConfig(level=logging.CRITICAL,
format='%(asctime)s %(levelname)-8s %(message)s',
datefmt='%a, %d %b %Y %H:%M:%S',
filename=os.devnull,
filemode='w')
the logging code apparently calls os.path.abspath(filename) somewhere,
causing an exception:
File "c:\python264\lib\logging\__init__.py", line 838, in _open
stream = open(self.baseFilename, self.mode)
IOError: [Errno 2] No such file or directory: '\\\\nul' |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年02月11日 15:09:45 | abakker | set | recipients:
+ abakker |
| 2010年02月11日 15:09:44 | abakker | set | messageid: <1265900984.97.0.533817039299.issue7909@psf.upfronthosting.co.za> |
| 2010年02月11日 15:09:43 | abakker | link | issue7909 messages |
| 2010年02月11日 15:09:43 | abakker | create |
|