davsclaus opened a new pull request, #29927: URL: https://github.com/apache/camel/pull/29927
Two options of item 4 of [CAMEL-26929](https://issues.apache.org/jira/browse/CAMEL-26929) that were silently ignored. ## `camel cmd logger --logging-level=BOGUS` It set the logger to ERROR and exited 0 (`LoggerAction`), and without a name it did that to every integration. The level is now checked first: an unknown level is a usage error (exit 2), "Unknown logging level: BOGUS (ERROR, WARN, INFO, DEBUG, TRACE, OFF)", and nothing is sent. The levels are those the completion offers, and OFF. ## `camel cmd browse --endpoint=seda:foo` This is the example in the command's own help, and it never matched: the browse console compared the filter with the endpoint URI as Camel has it, `seda://foo` (`BrowseDevConsole`). Only `--endpoint=seda://foo` worked. The console now also matches with `EndpointHelper.matchEndpoint`, which compares the URI with and without the `//` of the scheme (and normalizes it). A pattern such as `seda*` still matches. The change is in camel-console, so it also helps CLIs of other versions. ## Tests - `BrowseDevConsoleTest.testBrowseConsoleFilterWithoutTheSlashesOfTheScheme`: `seda:queue1` finds `seda://queue1`, and `seda*` finds both queues. - `LoggerActionTest.anUnknownLoggingLevelIsAUsageError`. - camel-console: 292 tests pass. camel-jbang-run: 303. camel-jbang-core: 3003 + 259. The other options of item 4 (`cmd route-structure --json` filters, `cmd send --timeout`, `cmd receive --since`) are not in this PR. _Claude Code on behalf of davsclaus_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
