fixing issues with log file on readthedocs
This commit is contained in:
		| @@ -41,6 +41,15 @@ except ImportError: | ||||
| stream_handler = logging.StreamHandler() | ||||
| stream_handler.setLevel(logging.ERROR) | ||||
|  | ||||
| on_rtd = os.environ.get('READTHEDOCS') == 'True' | ||||
| if on_rtd: | ||||
|   logging.basicConfig( | ||||
|     level = logging.INFO, | ||||
|     format='%(asctime)s | %(name)s |  %(levelname)s: %(message)s', | ||||
|     datefmt='%d-%m-%Y %H:%M:%S', | ||||
|     handlers=[stream_handler]) | ||||
|          | ||||
| else: | ||||
|   # Save all logs to a file, which contains more detailed output | ||||
|   logging.basicConfig( | ||||
|     level = logging.INFO, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user