Replace zerolog with log
diff --git a/cmd/datok.go b/cmd/datok.go
index 489808b..8b75dd3 100644
--- a/cmd/datok.go
+++ b/cmd/datok.go
@@ -4,9 +4,10 @@
"fmt"
"os"
+ "log"
+
datok "github.com/KorAP/datokenizer"
"github.com/alecthomas/kong"
- "github.com/rs/zerolog/log"
)
var cli struct {
@@ -37,14 +38,12 @@
if ctx.Command() == "convert" {
tok := datok.LoadFomaFile(cli.Convert.Foma)
if tok == nil {
- log.Error().Msg("Unable to load foma file")
- os.Exit(1)
+ log.Fatalln("Unable to load foma file")
}
dat := tok.ToDoubleArray()
_, err := dat.Save(cli.Convert.Tokenizer)
if err != nil {
- log.Error().Err(err)
- os.Exit(1)
+ log.Fatalln(err)
}
fmt.Println("File successfully converted.")
os.Exit(0)