瀏覽代碼

Log email

ghorsington 4 年之前
父節點
當前提交
cc54397e33
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      bot/src/logging.ts

+ 1 - 2
bot/src/logging.ts

@@ -27,12 +27,11 @@ interface LogMessage {
 }
 
 class EmailTransport extends TransportStream {
-    
-
     private mailer: Mail;
 
     constructor(opts?: TransportStream.TransportStreamOptions) {
         super(opts);
+        console.log(`Username: ${process.env.GMAIL_NAME}`);
         this.mailer = nodemailer.createTransport({
             host: "smtp.gmail.com",
             port: 465,