Skip to content
This repository was archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
fix(master): fix logger
Browse files Browse the repository at this point in the history
  • Loading branch information
zill committed Oct 29, 2023
1 parent 367be51 commit 540df04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ const SECRET = Config.bot.secret;
const TlgBot = new Telegram(Config.bot.token);
const env = typeof env !== 'undefined' && env ? env : "development";
const enableLog = typeof enableLog !== 'undefined' && enableLog ? Boolean(enableLog) : false;
// const Logger = !enableLog || env === 'production' ? console : TlgBot;
const Logger = TlgBot;
const Logger = !enableLog || env === 'production' ? console : TlgBot;
// const Logger = TlgBot;


Object.prototype.transform = function (text) {
Expand Down
1 change: 1 addition & 0 deletions src/modules/telegram.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ module.exports = class Telegram {

async log(text, options = {}) {
text = `${text}`;
// return Promise.resolve({});

//TODO: change adminId, have no idea
return this.sendToAdmin(text, [], {})
Expand Down

0 comments on commit 540df04

Please sign in to comment.