mirror of https://github.com/MISP/misp-dashboard
				
				
				
			Append to log instead of replacing
							parent
							
								
									9139ed7eef
								
							
						
					
					
						commit
						2034941d64
					
				|  | @ -33,7 +33,7 @@ class Contributor_helper: | |||
|         logPath = os.path.join(logDir, logfilename) | ||||
|         if not os.path.exists(logDir): | ||||
|             os.makedirs(logDir) | ||||
|         logging.basicConfig(filename=logPath, filemode='w', level=logging.INFO) | ||||
|         logging.basicConfig(filename=logPath, filemode='a', level=logging.INFO) | ||||
|         self.logger = logging.getLogger(__name__) | ||||
| 
 | ||||
|         #honorBadge | ||||
|  |  | |||
|  | @ -28,7 +28,7 @@ class Geo_helper: | |||
|         logPath = os.path.join(logDir, logfilename) | ||||
|         if not os.path.exists(logDir): | ||||
|             os.makedirs(logDir) | ||||
|         logging.basicConfig(filename=logPath, filemode='w', level=logging.INFO) | ||||
|         logging.basicConfig(filename=logPath, filemode='a', level=logging.INFO) | ||||
|         self.logger = logging.getLogger(__name__) | ||||
| 
 | ||||
|         self.keyCategCoord = "GEO_COORD" | ||||
|  |  | |||
|  | @ -26,7 +26,7 @@ class Trendings_helper: | |||
|         logPath = os.path.join(logDir, logfilename) | ||||
|         if not os.path.exists(logDir): | ||||
|             os.makedirs(logDir) | ||||
|         logging.basicConfig(filename=logPath, filemode='w', level=logging.INFO) | ||||
|         logging.basicConfig(filename=logPath, filemode='a', level=logging.INFO) | ||||
|         self.logger = logging.getLogger(__name__) | ||||
| 
 | ||||
|     ''' SETTER ''' | ||||
|  |  | |||
|  | @ -24,7 +24,7 @@ class Users_helper: | |||
|         logPath = os.path.join(logDir, logfilename) | ||||
|         if not os.path.exists(logDir): | ||||
|             os.makedirs(logDir) | ||||
|         logging.basicConfig(filename=logPath, filemode='w', level=logging.INFO) | ||||
|         logging.basicConfig(filename=logPath, filemode='a', level=logging.INFO) | ||||
|         self.logger = logging.getLogger(__name__) | ||||
| 
 | ||||
|     def addTemporary(self, org, timestamp): | ||||
|  |  | |||
|  | @ -27,7 +27,7 @@ logfilename = cfg.get('Log', 'filename') | |||
| logPath = os.path.join(logDir, logfilename) | ||||
| if not os.path.exists(logDir): | ||||
|     os.makedirs(logDir) | ||||
| logging.basicConfig(filename=logPath, filemode='w', level=logging.INFO) | ||||
| logging.basicConfig(filename=logPath, filemode='a', level=logging.INFO) | ||||
| logger = logging.getLogger('zmq_dispatcher') | ||||
| 
 | ||||
| CHANNEL = cfg.get('RedisLog', 'channel') | ||||
|  |  | |||
|  | @ -18,7 +18,7 @@ logfilename = cfg.get('Log', 'filename') | |||
| logPath = os.path.join(logDir, logfilename) | ||||
| if not os.path.exists(logDir): | ||||
|     os.makedirs(logDir) | ||||
| logging.basicConfig(filename=logPath, filemode='w', level=logging.INFO) | ||||
| logging.basicConfig(filename=logPath, filemode='a', level=logging.INFO) | ||||
| logger = logging.getLogger('zmq_subscriber') | ||||
| 
 | ||||
| ZMQ_URL = cfg.get('RedisGlobal', 'zmq_url') | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Sami Mokaddem
						Sami Mokaddem