feat: add source locations to log entries
This commit is contained in:
		| @@ -10,9 +10,9 @@ import ( | |||||||
| var log *slog.Logger | var log *slog.Logger | ||||||
|  |  | ||||||
| func init() { | func init() { | ||||||
| 	// it should print code line where call is occured; ai! |  | ||||||
| 	log = slog.New(slog.NewJSONHandler(os.Stderr, &slog.HandlerOptions{ | 	log = slog.New(slog.NewJSONHandler(os.Stderr, &slog.HandlerOptions{ | ||||||
| 		Level:     slog.LevelDebug, | 		Level:     slog.LevelDebug, | ||||||
|  | 		AddSource: true, | ||||||
| 	})) | 	})) | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Grail Finder (aider)
					Grail Finder (aider)