Skip to content

Commit

Permalink
Merge pull request #375 from LechevSpace/improvements
Browse files Browse the repository at this point in the history
Add derive(Debug) and tracing logging
  • Loading branch information
mdrokz committed Feb 20, 2023
2 parents 200e376 + 81f57f8 commit 9abb619
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/browser/fetcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const PLATFORM: &str = "mac";
#[cfg(windows)]
const PLATFORM: &str = "win";

#[derive(Clone)]
#[derive(Clone, Debug)]
pub struct FetcherOptions {
/// The desired chrome revision.
///
Expand Down
4 changes: 3 additions & 1 deletion src/browser/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ impl Drop for TemporaryProcess {

/// Represents the way in which Chrome is run. By default it will search for a Chrome
/// binary on the system, use an available port for debugging, and start in headless mode.
#[derive(Builder)]
#[derive(Debug, Builder)]
pub struct LaunchOptions<'a> {
/// Determines whether to run headless version of the browser. Defaults to true.
#[builder(default = "true")]
Expand Down Expand Up @@ -371,6 +371,8 @@ impl Process {
.ok_or_else(|| anyhow!("Chrome path required"))?;

info!("Launching Chrome binary at {:?}", &path);
trace!("with CLI arguments: {:?}", args);

let mut command = Command::new(path);

if let Some(process_envs) = launch_options.process_envs.clone() {
Expand Down

0 comments on commit 9abb619

Please sign in to comment.