Changeset 160:e6f2c8db1a99 for src/mlx


Ignore:
Timestamp:
05/05/12 14:01:16 (13 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Fixed the logging of fault messages

Location:
src/mlx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/logger.py

    r134 r160  
    8989                return
    9090        self._faults[faultID] = score
    91         if score==Logger.NO_GO_SCORE:
    92             text = "%s (NO GO)" % (what)
    93         else:
    94             text = "%s (%.1f)" % (what, score)
    95         lineIndex = self.message(timestamp, "%s (NO GO)" % (what))
     91        text = "%s (NO GO)" % (what) if score==Logger.NO_GO_SCORE \
     92               else "%s (%.1f)" % (what, score)
     93        lineIndex = self.message(timestamp, text)
    9694        self._faultLineIndexes.append(lineIndex)
    9795        (messageType, duration) = (const.MESSAGETYPE_NOGO, 10) \
  • src/mlx/mlx.py

    r155 r160  
    6464    try:
    6565        gui.build(programDirectory)
    66        
     66
    6767        gui.run()
    6868    finally:
Note: See TracChangeset for help on using the changeset viewer.