mirror of
https://github.com/micromdm/micromdm/
synced 2026-08-08 18:55:34 +08:00
apns command switches are deprecated, warn user (#412)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user