0

Do not log stream key when changing it

This commit is contained in:
Gabe Kangas 2022-01-31 13:23:50 -08:00
parent 8f02214456
commit ade392e5db
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA

24
main.go
View File

@ -16,16 +16,18 @@ import (
"github.com/owncast/owncast/utils" "github.com/owncast/owncast/utils"
) )
var dbFile = flag.String("database", "", "Path to the database file.") var (
var logDirectory = flag.String("logdir", "", "Directory where logs will be written to") dbFile = flag.String("database", "", "Path to the database file.")
var backupDirectory = flag.String("backupdir", "", "Directory where backups will be written to") logDirectory = flag.String("logdir", "", "Directory where logs will be written to")
var enableDebugOptions = flag.Bool("enableDebugFeatures", false, "Enable additional debugging options.") backupDirectory = flag.String("backupdir", "", "Directory where backups will be written to")
var enableVerboseLogging = flag.Bool("enableVerboseLogging", false, "Enable additional logging.") enableDebugOptions = flag.Bool("enableDebugFeatures", false, "Enable additional debugging options.")
var restoreDatabaseFile = flag.String("restoreDatabase", "", "Restore an Owncast database backup") enableVerboseLogging = flag.Bool("enableVerboseLogging", false, "Enable additional logging.")
var newStreamKey = flag.String("streamkey", "", "Set your stream key/admin password") restoreDatabaseFile = flag.String("restoreDatabase", "", "Restore an Owncast database backup")
var webServerPortOverride = flag.String("webserverport", "", "Force the web server to listen on a specific port") newStreamKey = flag.String("streamkey", "", "Set your stream key/admin password")
var webServerIPOverride = flag.String("webserverip", "", "Force web server to listen on this IP address") webServerPortOverride = flag.String("webserverport", "", "Force the web server to listen on a specific port")
var rtmpPortOverride = flag.Int("rtmpport", 0, "Set listen port for the RTMP server") webServerIPOverride = flag.String("webserverip", "", "Force web server to listen on this IP address")
rtmpPortOverride = flag.Int("rtmpport", 0, "Set listen port for the RTMP server")
)
func main() { func main() {
flag.Parse() flag.Parse()
@ -93,7 +95,7 @@ func handleCommandLineFlags() {
log.Errorln("Error setting your stream key.", err) log.Errorln("Error setting your stream key.", err)
log.Exit(1) log.Exit(1)
} else { } else {
log.Infoln("Stream key changed to", *newStreamKey) log.Infoln("Stream key changed")
} }
} }