Skip to content
Extraits de code Groupes Projets
Valider 4166da87 rédigé par Kai A. Hiller's avatar Kai A. Hiller
Parcourir les fichiers

Deconfuse logging function

parent ac82507f
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -136,8 +136,11 @@ async function run(port: number, fileConfig: DiscordBridgeConfig) {
}
},
onLog: (text: string, isError: boolean): void => {
const logText = (isError ? log.error : log.verbose).bind(log);
logText("matrix-appservice-bridge", text);
if (isError) {
log.error("matrix-appservice-bridge", text);
} else {
log.verbose("matrix-appservice-bridge", text);
}
},
thirdPartyLookup: async () => {
try {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment