Skip to content

Commit

Permalink
Added output to make loading more visible
Browse files Browse the repository at this point in the history
  • Loading branch information
mrusme committed Feb 3, 2022
1 parent 6f22c3c commit d5c6e0f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions superhighway84.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ func main() {
ctx, cancel := context.WithCancel(context.Background())
defer cancel()

log.Println("loading configuration ...")
cfg, err := config.LoadConfig()
if err != nil {
log.Panicln(err)
Expand All @@ -58,11 +59,13 @@ func main() {
cfg.Setup()
}

log.Println("initializing logger ...")
logger, err := NewLogger(cfg.Logfile)
if err != nil {
log.Panicln(err)
}

log.Println("initializing cache ...")
cch, err := cache.NewCache(cfg.ProgramCachePath)
if err != nil {
log.Panicln(err)
Expand All @@ -72,6 +75,7 @@ func main() {
var articles []*models.Article
var articlesRoots []*models.Article

log.Println("initializing TUI and loading database, please wait ...")
TUI := tui.Init(&EMBEDFS, cfg, cch, logger)
TUI.SetVersion(strings.TrimLeft(version, "v"), strings.TrimLeft(getLatestVersion(), "v") )

Expand Down

0 comments on commit d5c6e0f

Please sign in to comment.