~edwargix/tallyard

61bb4a036aa31f51b2dd964c2ffc2c169abbe6fa — David Florness 5 years ago b4b4868
Enable loggers on -d flag
2 files changed, 11 insertions(+), 4 deletions(-)

M TODO.org
M main.go
M TODO.org => TODO.org +0 -1
@@ 8,7 8,6 @@
* support getting inputs from peer other than owner
* make input right away to avoid lock BS
* warn about 2 voters
* enable loggers on -d flag
* symbol->string
* ~a for string conv
* handle user breaks

M main.go => main.go +11 -3
@@ 3,6 3,7 @@ package main
import (
	"bufio"
	"context"
	"flag"
	"fmt"
	"io"
	"os"


@@ 169,9 170,16 @@ func bootstrap() {

func main() {
	log.SetAllLoggers(logging.WARNING)
	log.SetLogLevel("dht", "critical")
	log.SetLogLevel("relay", "critical")
	log.SetLogLevel("tallyard", "critical")

	debug := flag.Bool("d", false, "enable extra logging for debugging")
	flag.Parse()
	if *debug {
		log.SetLogLevel("tallyard", "info")
	} else {
		log.SetLogLevel("dht", "critical")
		log.SetLogLevel("relay", "critical")
		log.SetLogLevel("tallyard", "critical")
	}

	app := tview.NewApplication()
	modal := tview.NewModal().