summaryrefslogtreecommitdiffstats
path: root/init.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2021-05-26 15:41:40 -0700
committerKevin McCarthy <kevin@8t8.us>2021-05-26 15:41:40 -0700
commitf60882fce0334ac1009d75c85e42ce59bc12e493 (patch)
treea7aa97c74fe52ab9b68509cebfddab6c7910bcda /init.c
parent30aea067d194e40fd4c5205e104ff377854e5d47 (diff)
Add debug statements around $hostname setting.
This will make slowdowns due to DNS issues more obvious.
Diffstat (limited to 'init.c')
-rw-r--r--init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/init.c b/init.c
index 2750e991..e75e51e9 100644
--- a/init.c
+++ b/init.c
@@ -3905,6 +3905,7 @@ void mutt_init (int skip_sys_rc, LIST *commands)
*/
if (!Fqdn)
{
+ dprint (1, (debugfile, "Setting $hostname\n"));
#ifdef DOMAIN
domain = safe_strdup (DOMAIN);
#endif /* DOMAIN */
@@ -3931,6 +3932,7 @@ void mutt_init (int skip_sys_rc, LIST *commands)
* network.
*/
Fqdn = safe_strdup(utsname.nodename);
+ dprint (1, (debugfile, "$hostname set to \"%s\"\n", NONULL (Fqdn)));
}