-
Notifications
You must be signed in to change notification settings - Fork 62
Control build output for maven build #4
Comments
Hi, thanks for your feedback. I'll take a look into how we can improve the configurability of the logging of Sauce Connect...the GET/POST requests are all logged from within Sauce Connect itself and I'm not sure if it provides a mechanism for changing the log level, but I'll take a look. The Maven plugin is an offshoot of the Sauce Jenkins plugin, which was logging the Sauce Connect messages to the system log rather than the build output, so configurability of the logging messages wasn't really an issue, however I agree that the Maven plugin should provide some more flexibility. Cheers, Ross |
Hi, I've released version 1.0.19 of the Sauce Connect Maven plugin which supports an additional 'quietMode' configuration option, eg.
When quietMode is set to true, the plugin will suppress the output of Sauce Connect process. Please let me know how this goes, and whether you have any further issues. Cheers, Ross |
This meets our needs and is MUCH better. It might also be helpful to have a systemProperties configuration element in order to add system properties to the subprocess (as it's done in the SureFire Plugin, for example). Assuming the output I've been seeing is controllable by system properties, this would allow us to dial up the logging a bit if we're seeing issues, but hopefully filter out more of the noise. As it stands with the quiteMode setting, all the annoying verbosity is gone, though, so I'm happy with this result. Thanks! |
We're using the sauce-connect-plugin to run Selenium tests in our Maven build. Sauce Connect seems to be pretty chatty, though, and I haven't found a clean way to control the output from Maven. It seems there are at least two types of output to control...first is the java.util.logging output coming from SauceConnectTwoManager's StreamGobbler, which I've managed to control if I pass a system property on the Maven command line (-Djava.util.logging.config.file=...) pointing to a logging config file. This reduces some of the output, but requires us to pass a lengthy command line argument whenever we build, since Maven makes it inordinately difficult to set a system property globally from within the build configuration.
Second is some much more verbose output that looks like wire-level request logging of GETs and POSTs to SauceLabs for individual browser interactions. I'm not sure yet where this is being output, but it's now the overwhelming majority of output produced by our build.
Am I missing some way of configuring the logging? Many Maven plugins have a way of passing in system properties in a configuration element, which the sauce-connect-plugin seems to be lacking. That would help control the SauceConnectTwoManager output. It seems another mechanism is also needed, presumably to control output from the SauceConnect subprocess?
Thanks.
The text was updated successfully, but these errors were encountered: