use --debug to replace --silent (#37)

* add --silent to service command

* ?

* use --debug to toggle the logging
This commit is contained in:
UUBulb
2024-07-13 12:47:22 +08:00
committed by GitHub
parent 3bf3f97767
commit fda3a52533
6 changed files with 13 additions and 17 deletions
+2 -2
View File
@@ -19,8 +19,8 @@ func IsWindows() bool {
return os.PathSeparator == '\\' && os.PathListSeparator == ';'
}
func Println(disabled bool, v ...interface{}) {
if !disabled {
func Println(enabled bool, v ...interface{}) {
if enabled {
if runtime.GOOS != "darwin" {
Logger.Infof("NEZHA@%s>> %v", time.Now().Format("2006-01-02 15:04:05"), fmt.Sprint(v...))
} else {