mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-25 18:25:03 +00:00
debug: track resolveUserId username match performance
This commit is contained in:
parent
ffdfa93534
commit
9bffbb1563
2 changed files with 11 additions and 1 deletions
|
@ -31,6 +31,7 @@ import { runExpiringVCAlertsLoop } from "./data/loops/expiringVCAlertsLoop";
|
|||
import { runExpiredArchiveDeletionLoop } from "./data/loops/expiredArchiveDeletionLoop";
|
||||
import { runSavedMessageCleanupLoop } from "./data/loops/savedMessageCleanupLoop";
|
||||
import { performance } from "perf_hooks";
|
||||
import { setProfiler } from "./profiler";
|
||||
|
||||
if (!process.env.KEY) {
|
||||
// tslint:disable-next-line:no-console
|
||||
|
@ -363,6 +364,8 @@ connect().then(async () => {
|
|||
runSavedMessageCleanupLoop();
|
||||
});
|
||||
|
||||
setProfiler(bot.profiler);
|
||||
|
||||
bot.initialize();
|
||||
logger.info("Bot Initialized");
|
||||
logger.info("Logging in...");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue