mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-31 06:13:11 +01:00
Fix platform logger
This commit is contained in:
@@ -176,7 +176,7 @@ Server.prototype._loadPlatforms = function() {
|
|||||||
throw new Error("Your config.json is requesting the platform '" + platformType + "' which has not been published by any installed plugins.");
|
throw new Error("Your config.json is requesting the platform '" + platformType + "' which has not been published by any installed plugins.");
|
||||||
|
|
||||||
// Create a custom logging function that prepends the platform name for debugging
|
// Create a custom logging function that prepends the platform name for debugging
|
||||||
var platformLogger = Logger.withPrefix(accessoryName);
|
var platformLogger = Logger.withPrefix(platformName);
|
||||||
|
|
||||||
platformLogger("Initializing %s platform...", platformType);
|
platformLogger("Initializing %s platform...", platformType);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user