[#1822] logged the current datetime on server start
This commit is contained in:
		
							parent
							
								
									9fd6e7fca1
								
							
						
					
					
						commit
						0948bf416d
					
				|  | @ -1,3 +1,10 @@ | |||
| ## v0.12.3 | ||||
| 
 | ||||
| - Fixed "Toggle column" reactivity when navigating between collections ([#1836](https://github.com/pocketbase/pocketbase/pull/1836)). | ||||
| 
 | ||||
| - Logged the current datetime on server start ([#1822](https://github.com/pocketbase/pocketbase/issues/1822)). | ||||
| 
 | ||||
| 
 | ||||
| ## v0.12.2 | ||||
| 
 | ||||
| - Fixed the "Clear" button of the datepicker component not clearing the value ([#1730](https://github.com/pocketbase/pocketbase/discussions/1730)). | ||||
|  |  | |||
							
								
								
									
										18
									
								
								cmd/serve.go
								
								
								
								
							
							
						
						
									
										18
									
								
								cmd/serve.go
								
								
								
								
							|  | @ -6,6 +6,7 @@ import ( | |||
| 	"net" | ||||
| 	"net/http" | ||||
| 	"path/filepath" | ||||
| 	"strings" | ||||
| 	"time" | ||||
| 
 | ||||
| 	"github.com/fatih/color" | ||||
|  | @ -90,11 +91,20 @@ func NewServeCommand(app core.App, showStartBanner bool) *cobra.Command { | |||
| 				if httpsAddr != "" { | ||||
| 					schema = "https" | ||||
| 				} | ||||
| 				regular := color.New() | ||||
| 
 | ||||
| 				date := new(strings.Builder) | ||||
| 				log.New(date, "", log.LstdFlags).Print() | ||||
| 
 | ||||
| 				bold := color.New(color.Bold).Add(color.FgGreen) | ||||
| 				bold.Printf("> Server started at: %s\n", color.CyanString("%s://%s", schema, serverConfig.Addr)) | ||||
| 				regular.Printf("  - REST API: %s\n", color.CyanString("%s://%s/api/", schema, serverConfig.Addr)) | ||||
| 				regular.Printf("  - Admin UI: %s\n", color.CyanString("%s://%s/_/", schema, serverConfig.Addr)) | ||||
| 				bold.Printf( | ||||
| 					"%s Server started at %s\n", | ||||
| 					strings.TrimSpace(date.String()), | ||||
| 					color.CyanString("%s://%s", schema, serverConfig.Addr), | ||||
| 				) | ||||
| 
 | ||||
| 				regular := color.New() | ||||
| 				regular.Printf(" ➜ REST API: %s\n", color.CyanString("%s://%s/api/", schema, serverConfig.Addr)) | ||||
| 				regular.Printf(" ➜ Admin UI: %s\n", color.CyanString("%s://%s/_/", schema, serverConfig.Addr)) | ||||
| 			} | ||||
| 
 | ||||
| 			var serveErr error | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue