rt-bulk-send: Make info the default loglevel.
This commit is contained in:
		
							parent
							
								
									b1249cc40f
								
							
						
					
					
						commit
						3c4bf92c5f
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -27,7 +27,7 @@ def parse_arguments(arglist): | |||
|     parser.add_argument( | ||||
|         '--loglevel', | ||||
|         choices=['debug', 'info', 'warning', 'error', 'critical'], | ||||
|         default='warning', | ||||
|         default='info', | ||||
|         help="Show log messages at this level (default %(default)s)", | ||||
|     ) | ||||
| 
 | ||||
|  | @ -75,6 +75,7 @@ def main(arglist=None, stdout=sys.stdout, stderr=sys.stderr): | |||
|         with body_file: | ||||
|             return 3 | ||||
| 
 | ||||
|     action_verb = args.action.title() | ||||
|     failures = 0 | ||||
|     with body_file, subprocess.Popen( | ||||
|             ['rt', 'search', '-i', args.search], | ||||
|  | @ -85,7 +86,7 @@ def main(arglist=None, stdout=sys.stdout, stderr=sys.stderr): | |||
|             ticket_id = line.rstrip('\n') | ||||
|             if not ticket_id: | ||||
|                 continue | ||||
|             logger.info("Acting on %s", ticket_id) | ||||
|             logger.info("%sing on %s", action_verb, ticket_id) | ||||
|             try: | ||||
|                 act_on_ticket(ticket_id, args, body_file) | ||||
|             except subprocess.CalledProcessError as error: | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Brett Smith
						Brett Smith