Add command line M3U exporter. Closes #1914
This commit is contained in:
+7
-1
@@ -5,6 +5,7 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"os"
|
||||
"runtime"
|
||||
"sort"
|
||||
"strings"
|
||||
@@ -40,7 +41,7 @@ var redacted = &Hook{
|
||||
}
|
||||
|
||||
const (
|
||||
LevelCritical = Level(logrus.FatalLevel)
|
||||
LevelCritical = Level(logrus.FatalLevel) // TODO Rename to LevelFatal
|
||||
LevelError = Level(logrus.ErrorLevel)
|
||||
LevelWarn = Level(logrus.WarnLevel)
|
||||
LevelInfo = Level(logrus.InfoLevel)
|
||||
@@ -145,6 +146,11 @@ func CurrentLevel() Level {
|
||||
return currentLevel
|
||||
}
|
||||
|
||||
func Fatal(args ...interface{}) {
|
||||
log(LevelCritical, args...)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
func Error(args ...interface{}) {
|
||||
log(LevelError, args...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user