Skip to content

Commit

Permalink
refactor: improve error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
phra committed Sep 5, 2019
1 parent 58f4111 commit ad8c38f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/fuzzbuster/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ impl FuzzBuster {

match &msg.error {
Some(e) => {
error!("{:?}", e);
error!("{} - {:?}", msg.url, e);
if current_numbers_of_request == 1 || self.exit_on_connection_errors {
warn!("Check connectivity to the target");
break;
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ fn main() {

match &msg.error {
Some(e) => {
error!("{:?}", e);
error!("{} - {:?}", msg.url, e);
if current_numbers_of_request == 1 || common_args.exit_on_connection_errors
{
warn!("Check connectivity to the target");
Expand Down Expand Up @@ -409,7 +409,7 @@ fn main() {

match &msg.error {
Some(e) => {
error!("{:?}", e);
error!("{} - {:?}", msg.vhost, e);
if current_numbers_of_request == 1 || common_args.exit_on_connection_errors
{
warn!("Check connectivity to the target");
Expand Down
2 changes: 1 addition & 1 deletion src/tildebuster/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ impl TildeBuster {

match &msg.error {
Some(e) => {
error!("{:?}", e);
error!("{} - {:?}", msg.request.url, e);
if current_numbers_of_request == 1 || exit_on_connection_errors {
warn!("Check connectivity to the target");
break;
Expand Down

0 comments on commit ad8c38f

Please sign in to comment.