From 3e82994ae2e35623801f78137d08789b23baef22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Wed, 4 Jan 2017 02:13:07 -0500 Subject: [PATCH] Make log style when referring user consistent with other places --- src/server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server.js b/src/server.js index 700cc7b0..261f345f 100644 --- a/src/server.js +++ b/src/server.js @@ -267,7 +267,7 @@ function localAuth(client, user, password, callback) { } if (!client.config.password) { - log.error("User", user, "with no local password set tried to sign in. (Probably a LDAP user)"); + log.error(`User ${colors.bold(user)} with no local password set tried to sign in. (Probably a LDAP user)`); return callback(false); } @@ -278,7 +278,7 @@ function localAuth(client, user, password, callback) { client.setPassword(hash, function(success) { if (success) { - log.info("User", client.name, "logged in and their hashed password has been updated to match new security requirements"); + log.info(`User ${colors.bold(client.name)} logged in and their hashed password has been updated to match new security requirements`); } }); }