Browse Source

reverted main.go

Alan Yeung 3 years ago
parent
commit
db3eec2ec5
2 changed files with 7 additions and 5 deletions
  1. 1 0
      .gitignore
  2. 6 5
      main.go

+ 1 - 0
.gitignore

@@ -71,3 +71,4 @@ start.sh.backup
 system/bridge.json
 launcher.exe
 web.tar.gz
+__debug_bin.exe

+ 6 - 5
main.go

@@ -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)
 		}
 	}()