[geary/mjog/1050-invalid-server-name] Components.NetworkAddressValidator: Add debug log when DNS lookup fails
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/mjog/1050-invalid-server-name] Components.NetworkAddressValidator: Add debug log when DNS lookup fails
- Date: Thu, 29 Oct 2020 12:34:23 +0000 (UTC)
commit 41603e0a409dba795b014aee6129c3223af0b9c5
Author: Michael Gratton <mike vee net>
Date: Thu Oct 29 23:33:36 2020 +1100
Components.NetworkAddressValidator: Add debug log when DNS lookup fails
src/client/components/components-validator.vala | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/client/components/components-validator.vala b/src/client/components/components-validator.vala
index 16f256b58..4d31dc505 100644
--- a/src/client/components/components-validator.vala
+++ b/src/client/components/components-validator.vala
@@ -485,6 +485,10 @@ public class Components.NetworkAddressValidator : Validator {
} catch (GLib.IOError.CANCELLED err) {
this.validated_address = null;
} catch (GLib.Error err) {
+ debug(
+ "Error in address lookup during validation: %s",
+ err.message
+ );
this.validated_address = null;
update_state(Validator.Validity.INVALID, reason);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]