|
@@ -3,6 +3,7 @@ package main
|
|
|
import (
|
|
|
"flag"
|
|
|
"fmt"
|
|
|
+ "log"
|
|
|
"net/http"
|
|
|
"os"
|
|
|
"os/signal"
|
|
@@ -97,8 +98,8 @@ func main() {
|
|
|
os.Mkdir(*tmp_directory, 0777)
|
|
|
|
|
|
//Print copyRight information
|
|
|
- systemWideLogger.PrintAndLog("Main", "ArozOS(C) "+strconv.Itoa(time.Now().Year())+" "+deviceVendor+".", nil)
|
|
|
- systemWideLogger.PrintAndLog("Main", "ArozOS "+build_version+" Revision "+internal_version, nil)
|
|
|
+ log.Println("ArozOS(C) " + strconv.Itoa(time.Now().Year()) + " " + deviceVendor + ".")
|
|
|
+ log.Println("ArozOS " + build_version + " Revision " + internal_version)
|
|
|
|
|
|
/*
|
|
|
New Implementation of the ArOZ Online System, Sept 2020
|
|
@@ -130,14 +131,14 @@ func main() {
|
|
|
if *use_tls {
|
|
|
if !*disable_http {
|
|
|
go func() {
|
|
|
- systemWideLogger.PrintAndLog("Web Server", "Standard (HTTP) Web server listening at :"+strconv.Itoa(*listen_port), nil)
|
|
|
+ log.Println("Standard (HTTP) Web server listening at :" + strconv.Itoa(*listen_port))
|
|
|
http.ListenAndServe(":"+strconv.Itoa(*listen_port), nil)
|
|
|
}()
|
|
|
}
|
|
|
- systemWideLogger.PrintAndLog("Web Server", "Secure (HTTPS) Web server listening at :"+strconv.Itoa(*tls_listen_port), nil)
|
|
|
+ log.Println("Secure (HTTPS) Web server listening at :" + strconv.Itoa(*tls_listen_port))
|
|
|
http.ListenAndServeTLS(":"+strconv.Itoa(*tls_listen_port), *tls_cert, *tls_key, nil)
|
|
|
} else {
|
|
|
- systemWideLogger.PrintAndLog("Web Server", "Web server listening at :"+strconv.Itoa(*listen_port), nil)
|
|
|
+ log.Println("Web server listening at :" + strconv.Itoa(*listen_port))
|
|
|
http.ListenAndServe(":"+strconv.Itoa(*listen_port), nil)
|
|
|
}
|
|
|
}()
|