[gen] Log: prepend the user login.

This commit is contained in:
Gaetan Delannay 2014-08-06 14:29:18 +02:00
parent 9cccdebe24
commit c8a9c04141
2 changed files with 2 additions and 1 deletions

View file

@ -563,7 +563,7 @@ class BaseMixin:
if type == 'warning': logMethod = logger.warn if type == 'warning': logMethod = logger.warn
elif type == 'error': logMethod = logger.error elif type == 'error': logMethod = logger.error
else: logMethod = logger.info else: logMethod = logger.info
logMethod(msg) logMethod('%s: %s' % (self.getTool().getUser().login, msg))
def do(self): def do(self):
'''Performs some action from the user interface.''' '''Performs some action from the user interface.'''

View file

@ -69,6 +69,7 @@ input.buttonSmall { width: 100px !important; font-size: 85%; height: 18px;
.xhtml img { margin-right: 5px } .xhtml img { margin-right: 5px }
.xhtml p { margin: 3px 0 7px 0 } .xhtml p { margin: 3px 0 7px 0 }
.clickable { cursor: pointer } .clickable { cursor: pointer }
.help { cursor: help }
.refLink { font-style: italic; padding-left: 5px; font-size: 90%; color: grey } .refLink { font-style: italic; padding-left: 5px; font-size: 90%; color: grey }
.buttons { margin-left: 4px } .buttons { margin-left: 4px }
.message { position: absolute; top: -40px; left: 50%; font-size: 90%; .message { position: absolute; top: -40px; left: 50%; font-size: 90%;