diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/main.rs b/src/main.rs index c93d616..c7be3ee 100644 --- a/src/main.rs +++ b/src/main.rs @@ -113,7 +113,7 @@ fn main() { stderrlog::new() .module(module_path!()) .timestamp(stderrlog::Timestamp::Second) - .verbosity(4) // LogLevel::Trace + .verbosity(2) // LogLevel::Info .init() .expect("Logger failed to initialise"); @@ -139,7 +139,9 @@ fn main() { }, }; - // TODO: Get rid of clones + // Clone so we can use these values in the thread + // closure. Since both closures are required to be + // 'static, we can't use references to these values. let jenkins_url = jenkins_url.clone(); let jenkins_user_id = jenkins_user_id.clone(); let jenkins_token = jenkins_token.clone(); @@ -150,17 +152,13 @@ fn main() { match jenkins::find_and_track_build_and_update_status( commit_ref, - &jenkins_url, + jenkins_url, &jenkins_user_id, &jenkins_token, - &github_token, + github_token, ) { Ok(_) => {}, - Err(e) => { - error!("{}", e.to_string()); - - // return internal_server_error() - }, + Err(e) => error!("{}", e.to_string()), }; }); |