fix: cosmetic changes on API log
parent
1df3f1926c
commit
a4da5c100a
7
main.go
7
main.go
|
|
@ -5,7 +5,6 @@ import (
|
||||||
"api/database"
|
"api/database"
|
||||||
"api/globals"
|
"api/globals"
|
||||||
"api/routes"
|
"api/routes"
|
||||||
"fmt"
|
|
||||||
"io"
|
"io"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
|
@ -29,17 +28,19 @@ func main() {
|
||||||
mw := io.MultiWriter(os.Stdout, logFile)
|
mw := io.MultiWriter(os.Stdout, logFile)
|
||||||
log.SetOutput(mw)
|
log.SetOutput(mw)
|
||||||
|
|
||||||
|
log.Println("==================================================================")
|
||||||
|
|
||||||
// Get release type from command line
|
// Get release type from command line
|
||||||
args := os.Args[1:]
|
args := os.Args[1:]
|
||||||
|
|
||||||
if len(args) == 0 {
|
if len(args) == 0 {
|
||||||
fmt.Printf("Missing release type\n")
|
log.Println("Missing release type")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load configurations for the release type
|
// Load configurations for the release type
|
||||||
if !config.LoadConfigurations(args[0]) {
|
if !config.LoadConfigurations(args[0]) {
|
||||||
fmt.Printf("Invalid release type: %s\n", args[0])
|
log.Printf("Invalid release type: %s\n", args[0])
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue