Updated logger calls

This commit is contained in:
netbenix 2021-10-30 21:36:02 +02:00
parent 8e885dd555
commit 1bd48b980f
4 changed files with 13 additions and 11 deletions

View file

@ -2,15 +2,17 @@ package main
import (
"github.com/urfave/cli/v2"
"log"
"lpm-cli/Commands"
"lpm-cli/Informations"
"lpm-cli/Tools"
"os"
)
func main() {
Tools.LoggerInit()
func main(){
Tools.InfoLogger.Printf("Lotus-PM was executed")
app := &cli.App {
Name: "lotus-pm",
Usage: "Lotus Package Manager",
@ -20,12 +22,12 @@ func main(){
Commands.PushCommand(),
Commands.PullCommand(),
Commands.SearchCommand(),
Commands.ListCommand(),
},
}
err := app.Run(os.Args)
if err != nil {
log.Fatal(err)
Tools.ErrorLogger.Fatal(err)
}
}