Display process id on server launch.
This commit is contained in:
		
							parent
							
								
									7527b3678f
								
							
						
					
					
						commit
						ae436a7079
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -14,6 +14,7 @@ logging.getLogger().addHandler(handler) | |||
| 
 | ||||
| import argparse | ||||
| import gevent.pywsgi | ||||
| import os | ||||
| import sys | ||||
| 
 | ||||
| from voussoirkit import pathclass | ||||
|  | @ -56,7 +57,7 @@ def etiquette_flask_launch( | |||
| 
 | ||||
|     backend.common.init_photodb(create=create, log_level=LOG_LEVEL) | ||||
| 
 | ||||
|     message = f'Starting server on port {port}' | ||||
|     message = f'Starting server on port {port}, pid={os.getpid()}' | ||||
|     if use_https: | ||||
|         message += ' (https)' | ||||
|     print(message) | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue