more logging for message storage

This commit is contained in:
Max Leiter 2022-05-30 18:13:12 -07:00
parent a7344b8a4b
commit 027ab3bbfc
No known key found for this signature in database
GPG key ID: A3512F2F2F17EBDA
3 changed files with 10 additions and 7 deletions

View file

@ -146,6 +146,10 @@ class Client {
for (const messageStorage of client.messageStorage) {
messageStorage.enable();
}
console.log(
"Message storage: " + client.messageStorage.map((m) => m.isEnabled).join(", ")
);
}
if (!_.isPlainObject(client.config.sessions)) {

View file

@ -30,6 +30,8 @@ const toExport = {
initialized: false,
// TODO: fix typing
async initialize() {
log.info("Auth initializing", toExport.initialized);
if (toExport.initialized) {
return;
}
@ -38,6 +40,8 @@ const toExport = {
const resolvedPlugins = await Promise.all(plugins);
for (const {default: plugin} of resolvedPlugins) {
log.info("Auth plugin", plugin.moduleName, "enabled", plugin.isEnabled().toString());
if (plugin.isEnabled()) {
toExport.initialized = true;

View file

@ -133,11 +133,6 @@ interface ClientToServerEvents {
}) => void;
}
interface InterServerEvents {
ping: () => void;
}
interface InterServerEvents {}
interface SocketData {
name: string;
age: number;
}
interface SocketData {}