Changeset 4875 for waeup/trunk/src


Ignore:
Timestamp:
22 Jan 2010, 12:50:52 (15 years ago)
Author:
uli
Message:

First logging example: log file uploaded action to datacenter logger.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/trunk/src/waeup/browser/pages.py

    r4858 r4875  
    274274                                  self.getNormalizedFileName(filename))
    275275            open(target, 'wb').write(uploadfile.read())
     276            logger = self.context.logger
     277            logger.info('%s: Uploaded file "%s"' % (
     278                self.request.principal.id, target))
    276279        except IOError:
    277280            self.flash('Error while uploading file. Please retry.')
Note: See TracChangeset for help on using the changeset viewer.