apns command switches are deprecated, warn user (#412)

This commit is contained in:
Jesse Peterson
2018-05-12 14:27:52 -07:00
committed by GitHub
parent 6cda0a214b
commit 887754922c

View File

@@ -124,6 +124,9 @@ func serve(args []string) error {
if !*flTLS && (*flTLSCert != "" || *flTLSKey != "") {
return errors.New("cannot set -tls=false and supply -tls-cert or -tls-key")
}
if *flAPNSCertPath != "" || *flAPNSKeyPass != "" || *flAPNSKeyPath != "" {
stdlog.Println("-apns-cert, -apns-password, and -apns-key switches are deprecated. please transition to `mdmctl mdmcert upload` instead")
}
logger := log.NewLogfmtLogger(os.Stderr)
stdlog.SetOutput(log.NewStdlibAdapter(logger)) // force structured logs