jeff-winn / homebridge-automower-platform

A platform plugin for Homebridge to connect your Husqvarna Automower and Gardena Smart robotic lawn mowers to Apple HomeKit.
MIT License
10 stars 0 forks source link

Logs from platform not showing platform name #202

Closed jeff-winn closed 1 year ago

jeff-winn commented 1 year ago

Describe The Bug: The logs being written from the platform class appear to be missing the indicating they're coming from the platform name.

To Reproduce: Start up the plugin, and review the logs.

Expected behavior: All logs coming from the platform when a custom name is used should begin with: [Homebridge Automower Platform - Developer 1]

Logs:

[11/19/2022, 10:02:24 AM] [Developer 1] Initializing Homebridge Automower Platform platform...
[11/19/2022, 10:02:24 AM] [Developer 1] Configuring 'Dobby' from the accessory cache.

Plugin Config:

{
    "name": "Developer 1",
    "lang": "en",
    "appKey": "REDACTED",
    "authentication_mode": "client_credentials",
    "application_secret": "REDACTED",
    "platform": "Homebridge Automower Platform"
}

Environment:

jeff-winn commented 1 year ago

Instead of changing how the platform logged, I opted to just have the plug-in match what Homebridge itself was doing since the plug-in logger was supposed to be an imitation.