Changeset 16029 for main/waeup.kofa


Ignore:
Timestamp:
6 Mar 2020, 21:06:36 (5 years ago)
Author:
Henrik Bettermann
Message:

Specify level in logfile when editing studylevels.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/studylevel.py

    r16027 r16029  
    223223
    224224    def writeLogMessage(self, view, message):
    225         return self.__parent__.__parent__.writeLogMessage(view, message)
     225        ob_class = view.__implemented__.__name__.replace('waeup.kofa.','')
     226        self.__parent__.__parent__.__parent__.logger.info(
     227            '%s - %s - level %s - %s' % (
     228                ob_class,
     229                self.__parent__.__parent__.__name__,
     230                self.__name__,
     231                message))
     232        return
    226233
    227234    @property
Note: See TracChangeset for help on using the changeset viewer.