delete old codes

This commit is contained in:
Alireza Ahmadi
2025-01-06 00:08:27 +01:00
parent 8bab127f19
commit 8073e8ab0a
6 changed files with 2 additions and 83 deletions
+1 -2
View File
@@ -3,7 +3,6 @@ package logger
import (
"fmt"
"os"
"s-ui/config"
"time"
"github.com/op/go-logging"
@@ -29,7 +28,7 @@ func InitLogger(level logging.Level) {
fmt.Println("Unable to use syslog: " + err.Error())
backend = logging.NewLogBackend(os.Stderr, "", 0)
}
if config.IsSystemd() && err != nil {
if err != nil {
format = logging.MustStringFormatter(`%{time:2006/01/02 15:04:05} %{level} - %{message}`)
} else {
format = logging.MustStringFormatter(`%{level} - %{message}`)