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( |     parser.add_argument( | ||||||
|         '--loglevel', |         '--loglevel', | ||||||
|         choices=['debug', 'info', 'warning', 'error', 'critical'], |         choices=['debug', 'info', 'warning', 'error', 'critical'], | ||||||
|         default='warning', |         default='info', | ||||||
|         help="Show log messages at this level (default %(default)s)", |         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: |         with body_file: | ||||||
|             return 3 |             return 3 | ||||||
| 
 | 
 | ||||||
|  |     action_verb = args.action.title() | ||||||
|     failures = 0 |     failures = 0 | ||||||
|     with body_file, subprocess.Popen( |     with body_file, subprocess.Popen( | ||||||
|             ['rt', 'search', '-i', args.search], |             ['rt', 'search', '-i', args.search], | ||||||
|  | @ -85,7 +86,7 @@ def main(arglist=None, stdout=sys.stdout, stderr=sys.stderr): | ||||||
|             ticket_id = line.rstrip('\n') |             ticket_id = line.rstrip('\n') | ||||||
|             if not ticket_id: |             if not ticket_id: | ||||||
|                 continue |                 continue | ||||||
|             logger.info("Acting on %s", ticket_id) |             logger.info("%sing on %s", action_verb, ticket_id) | ||||||
|             try: |             try: | ||||||
|                 act_on_ticket(ticket_id, args, body_file) |                 act_on_ticket(ticket_id, args, body_file) | ||||||
|             except subprocess.CalledProcessError as error: |             except subprocess.CalledProcessError as error: | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Brett Smith
						Brett Smith