modifié: m/log.py
This commit is contained in:
		
							
								
								
									
										22
									
								
								m/log.py
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								m/log.py
									
									
									
									
									
								
							| @@ -19,18 +19,18 @@ class Log(object): | |||||||
|             dest.write("%s,%s,%s,%s\n" % (d,pLog,pMsg,pIP)) |             dest.write("%s,%s,%s,%s\n" % (d,pLog,pMsg,pIP)) | ||||||
|  |  | ||||||
|  |  | ||||||
|     def printL(self,pMsg,pLvl) |     def printL(self,pMsg,pLvl): | ||||||
|         logger.log(pMsg, pLvl) |         logger.log(pMsg, pLvl) | ||||||
|             if pLvl == 10 |         if pLvl == 10 | ||||||
|                 print bcolors.DEBUG , |             print bcolors.DEBUG , | ||||||
|             elif pLvl == 20 : |         elif pLvl == 20 : | ||||||
|                 print bcolors.INFO , |             print bcolors.INFO , | ||||||
|             elif pLvl == 30 : |         elif pLvl == 30 : | ||||||
|                 print bcolors.WARNING , |             print bcolors.WARNING , | ||||||
|             elif pLvl == 40 : |         elif pLvl == 40 : | ||||||
|                 print bcolors.FAIL , |             print bcolors.FAIL , | ||||||
|             print pMsg |         print pMsg | ||||||
|             print bcolors.ENDC , |         print bcolors.ENDC , | ||||||
|  |  | ||||||
|  |  | ||||||
|         } |         } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user