Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is silent supported? #79

Open
chadhutchins182 opened this issue Aug 3, 2020 · 0 comments
Open

Is silent supported? #79

chadhutchins182 opened this issue Aug 3, 2020 · 0 comments

Comments

@chadhutchins182
Copy link

Question

I am under the impression that silent = true would suppress any output to the console, but it wasn't doing that for me. Taking a look into the code and this appeared to be the only reference in the code besides examples:

const logger = options.logger || (options.silent && {
debug: dummy,
info: dummy,
warn: dummy,
error: dummy
} || {
debug: console.log,
info: console.info,
warn: console.warn,
error: console.error
});

I took a look at nodemailer as well to see if it was documented there but I couldn't find anything.

Code

        sendmail({
            from: 'REDACTED',
            to: 'REDACTED',
            subject: 'FATAL ERROR IN GRIDSERVER UPDATER',
            text: logData,
            silent: true
        }, function (err, reply) {
            //console.log(err && err.stack);
            //console.dir(reply);
        });

Output

mx resolved:  [ { exchange: 'REDACTED', priority: 10 } ]
MX connection created:  REDACTED
recv REDACTED>220 *****************************
send REDACTED>HELO REDACTED
recv REDACTED>250 REDACTED
send REDACTED>MAIL FROM:<REDACTED>
recv REDACTED>250 sender <REDACTED> ok
send REDACTED>RCPT TO:<REDACTED>
recv REDACTED>250 recipient <REDACTED> ok
send REDACTED>DATA
recv REDACTED>354 go ahead
sending mail <Buffer REDACTED>
send REDACTED>Content-Type: text/plain
From: REDACTED
To: REDACTED
Subject: FATAL ERROR IN GRIDSERVER UPDATER
Message-ID: <REDACTED>
Date: Mon, 03 Aug 2020 21:41:26 +0000
MIME-Version: 1.0

Reference

Doc reference: https://github.com/guileen/node-sendmail/blob/6c408d4664d253a0547784e67b6411aa9c285165/Readme.md#options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant