Example #1
0
func Init(force bool) error {
	// Set up logging.
	log.SetV(log.MustStringToLevel(LogFlag.Value()))

	// Make sure the repo is initialised.
	if err := repo.Init(force); err != nil {
		return err
	}

	return nil
}
Example #2
0
func InitLogging() {
	// Set up logging.
	log.SetV(log.MustStringToLevel(appflags.FlagLog.Value()))
}