From 7015fd1e5c6732335c9e2be24f54c14b92262201 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 16 Jan 2023 01:31:56 -0500 Subject: [PATCH] chore: remove deprecated ability to call logs:failed without specifying an app or --all flag This option was deprecated in Dokku 0.22.0. --- docs/deployment/logs.md | 2 +- plugins/logs/subcommands.go | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/docs/deployment/logs.md b/docs/deployment/logs.md index 62cba312b..8c9531893 100644 --- a/docs/deployment/logs.md +++ b/docs/deployment/logs.md @@ -2,7 +2,7 @@ ``` logs [-h|--help] [-t|--tail] [-n|--num num] [-q|--quiet] [-p|--ps process] # Display recent log output -logs:failed [--all|] # Shows the last failed deploy logs +logs:failed --all| # Shows the last failed deploy logs logs:report [] [] # Displays a logs report for one or more apps logs:set [--global|] # Set or clear a logs property for an app logs:vector-logs [--num num] [--tail] # Display vector log output diff --git a/plugins/logs/subcommands.go b/plugins/logs/subcommands.go index 6808c8352..775bb1b71 100644 --- a/plugins/logs/subcommands.go +++ b/plugins/logs/subcommands.go @@ -37,11 +37,6 @@ func CommandFailed(appName string, allApps bool) error { return common.RunCommandAgainstAllAppsSerially(GetFailedLogs, "logs:failed") } - if appName == "" { - common.LogWarn("Deprecated: logs:failed specified without app, assuming --all") - return common.RunCommandAgainstAllAppsSerially(GetFailedLogs, "logs:failed") - } - if err := common.VerifyAppName(appName); err != nil { return err }