feat: more logs
This commit is contained in:
		
							parent
							
								
									049a5e6e7e
								
							
						
					
					
						commit
						02d0f49070
					
				|  | @ -98,6 +98,7 @@ func mainImpl() error { | ||||||
| 	if err := setupSlog(""); err != nil { // before conf is loaded
 | 	if err := setupSlog(""); err != nil { // before conf is loaded
 | ||||||
| 		return err | 		return err | ||||||
| 	} | 	} | ||||||
|  | 	slog.Info("start joj3", "version", Version) | ||||||
| 	flag.Parse() | 	flag.Parse() | ||||||
| 	if *showVersion { | 	if *showVersion { | ||||||
| 		fmt.Println(Version) | 		fmt.Println(Version) | ||||||
|  | @ -140,6 +141,7 @@ func mainImpl() error { | ||||||
| 
 | 
 | ||||||
| func main() { | func main() { | ||||||
| 	if err := mainImpl(); err != nil { | 	if err := mainImpl(); err != nil { | ||||||
|  | 		slog.Error("main exit", "error", err) | ||||||
| 		os.Exit(1) | 		os.Exit(1) | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user