mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-14 11:35:13 +02:00
more logging for message storage
This commit is contained in:
parent
a7344b8a4b
commit
027ab3bbfc
|
@ -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)) {
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
9
src/types/socket-events.d.ts
vendored
9
src/types/socket-events.d.ts
vendored
|
@ -133,11 +133,6 @@ interface ClientToServerEvents {
|
|||
}) => void;
|
||||
}
|
||||
|
||||
interface InterServerEvents {
|
||||
ping: () => void;
|
||||
}
|
||||
interface InterServerEvents {}
|
||||
|
||||
interface SocketData {
|
||||
name: string;
|
||||
age: number;
|
||||
}
|
||||
interface SocketData {}
|
||||
|
|
Loading…
Reference in a new issue