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

Improve logging callback


Signed-off-by: default avatarKai A. Hiller <V02460@gmail.com>
parent 57e81e5c
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -134,8 +134,9 @@ async function run(port: number, fileConfig: DiscordBridgeConfig) { ...@@ -134,8 +134,9 @@ async function run(port: number, fileConfig: DiscordBridgeConfig) {
} }
} }
}, },
onLog: (line, isError) => { onLog: (text: string, isError: boolean): void => {
log.verbose("matrix-appservice-bridge", line); const logText = (isError ? log.error : log.verbose).bind(log);
logText("matrix-appservice-bridge", text);
}, },
thirdPartyLookup: async () => { thirdPartyLookup: async () => {
try { try {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter