diff options
author | Bence Ferdinandy <bence@ferdinandy.com> | 2023-02-05 13:32:49 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-02-12 00:42:00 +0100 |
commit | 05c5dcde23d210514ae84305fb1b0985e62f48fd (patch) | |
tree | 889e617128416e98d36b34bdc82122a85943eed0 /commands/compose/send.go | |
parent | a553b33ebcbdf8b12ac1546ec45f4437dac1f8b0 (diff) | |
download | aerc-05c5dcde23d210514ae84305fb1b0985e62f48fd.tar.gz |
log: add debug for send configuration
Make it easier to debug send configurations.
References: https://todo.sr.ht/~rjarry/aerc/127
Signed-off-by: Bence Ferdinandy <bence@ferdinandy.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'commands/compose/send.go')
-rw-r--r-- | commands/compose/send.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/commands/compose/send.go b/commands/compose/send.go index 1b65ab01..4eceefe9 100644 --- a/commands/compose/send.go +++ b/commands/compose/send.go @@ -107,6 +107,14 @@ func (Send) Execute(aerc *widgets.Aerc, args []string) error { domain: domain, } + log.Debugf("send config uri: %s", ctx.uri) + log.Debugf("send config scheme: %s", ctx.scheme) + log.Debugf("send config auth: %s", ctx.auth) + log.Debugf("send config starttls: %s", ctx.starttls) + log.Debugf("send config from: %s", ctx.from) + log.Debugf("send config rcpts: %s", ctx.rcpts) + log.Debugf("send config domain: %s", ctx.domain) + warn, err := composer.ShouldWarnAttachment() if err != nil || warn { msg := "You may have forgotten an attachment." |