Source

jaraco.net / jaraco / net / scanner.py

Diff from to

jaraco/net/scanner.py

 
 def setup_logger(output_level):
 	outputHandler = logging.StreamHandler(sys.stdout)
-	outputHandler.level = getattr(logging, output_level.upper())
+	outputHandler.level = output_level
 	logging.root.handlers.append(outputHandler)
 	logdir = os.path.join(os.environ['SystemRoot'], 'system32',
 		'logfiles', 'portscan')
 		log.exception('Fatal error occured.  Terminating.')
 
 if __name__ == '__main__':
-	scan()
+	scan()