Commits

Wang Dingwei committed e1785e8

added debug logs

  • Participants
  • Parent commits f51bcaa

Comments (0)

Files changed (2)

rqs/views/checkout.py

         try:
             db.session.query(Unit).filter(Unit.ServiceTag==svctag).delete()
             db.session.commit()
+            app.logger.debug("delete %s: manual checkout" % svctag)
             msg = "%s checkout successfull." % svctag
             flash(msg)
         except Exception, e:

rqs/views/line.py

             if u.stage not in ['TS', 'TT', 'TW', 'TO', 'TV', 'IO']:
                 delayed.remove(u)
                 db.session.delete(u)
+                app.logger.debug("deleted %s: stage is %s"
+                                 % (u.ServiceTag, u.stage))
         db.session.commit()
 
     # Category data by rack