adjust prefix
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								e002710c4c
							
						
					
				
			
			
				commit
				
					
						a7a3ee6f19
					
				
			
		
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -55,10 +55,10 @@ class Emulator(object): | |||
|     def filter(self, record): | ||||
|         """Add hostname and object to logs via logging Filter""" | ||||
| 
 | ||||
|         prefix = self.target_host + ": " | ||||
|         prefix = self.target_host + ": (emulator)" | ||||
| 
 | ||||
|         if self.object_id: | ||||
|             prefix = prefix + self.type_name + "/" + self.object_id | ||||
|             prefix = prefix + " " + self.type_name + "/" + self.object_id | ||||
| 
 | ||||
|         record.msg = prefix + ": " + record.msg | ||||
| 
 | ||||
|  | @ -108,7 +108,7 @@ class Emulator(object): | |||
| 
 | ||||
|         # And finally parse/verify parameter | ||||
|         self.args = parser.parse_args(self.argv[1:]) | ||||
|         self.log.debug('Emulator args: %s' % self.args) | ||||
|         self.log.debug('Args: %s' % self.args) | ||||
| 
 | ||||
| 
 | ||||
|     def setup_object(self): | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue