Add temporary logging
This commit is contained in:
		@@ -389,9 +389,9 @@ class MumbleBot:
 | 
				
			|||||||
                        msg += '</table>'
 | 
					                        msg += '</table>'
 | 
				
			||||||
                        # Shorten table if message too long
 | 
					                        # Shorten table if message too long
 | 
				
			||||||
                        if len(msg) < 5000:
 | 
					                        if len(msg) < 5000:
 | 
				
			||||||
 | 
					                            logging.info('Result too long stage I')
 | 
				
			||||||
                            msg = var.config.get('strings', 'rbqueryresult') + " :" + ' (shortened L1)'
 | 
					                            msg = var.config.get('strings', 'rbqueryresult') + " :" + ' (shortened L1)'
 | 
				
			||||||
                            msg += '\n<table><tr><th>!rbplay ID</th><th>Station Name</th></tr>'
 | 
					                            msg += '\n<table><tr><th>!rbplay ID</th><th>Station Name</th></tr>'
 | 
				
			||||||
                        else:
 | 
					 | 
				
			||||||
                            for s in rb_stations:
 | 
					                            for s in rb_stations:
 | 
				
			||||||
                                stationid = s['id']
 | 
					                                stationid = s['id']
 | 
				
			||||||
                                stationname = s['stationname']
 | 
					                                stationname = s['stationname']
 | 
				
			||||||
@@ -399,6 +399,7 @@ class MumbleBot:
 | 
				
			|||||||
                                if len(msg) < 5000:
 | 
					                                if len(msg) < 5000:
 | 
				
			||||||
                                    self.send_msg(msg, text)
 | 
					                                    self.send_msg(msg, text)
 | 
				
			||||||
                                else:
 | 
					                                else:
 | 
				
			||||||
 | 
					                                    logging.info('Result too long stage II')
 | 
				
			||||||
                                    msg = var.config.get('strings', 'rbqueryresult') + " :" + ' (shortened L2)'
 | 
					                                    msg = var.config.get('strings', 'rbqueryresult') + " :" + ' (shortened L2)'
 | 
				
			||||||
                                    msg += '!rbplay ID - Station Name'
 | 
					                                    msg += '!rbplay ID - Station Name'
 | 
				
			||||||
                                    for s in rb_stations:
 | 
					                                    for s in rb_stations:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user