Skip to content

Commit

Permalink
Remove exit code logging at the end of command execution
Browse files Browse the repository at this point in the history
  • Loading branch information
Griffin-Sullivan authored and ehelms committed Apr 2, 2024
1 parent e2c432b commit cfbb8c4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/foreman_maintain/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,10 @@ def run(*arguments)
end

return @exit_code
ensure
log_exit_code_info(@exit_code)
end

private

def log_exit_code_info(exit_code)
logger.info("foreman-maintain command finished with #{exit_code}")
end

def process_standard_error(error)
if error.is_a?(Clamp::HelpWanted) ||
error.is_a?(ArgumentError) ||
Expand All @@ -68,7 +62,6 @@ def process_standard_error(error)
end

def process_usage_error(error)
log_exit_code_info(1)
$stderr.puts error.message
exit!
end
Expand Down

0 comments on commit cfbb8c4

Please sign in to comment.