Skip to content

Commit

Permalink
Remove duplicate log line
Browse files Browse the repository at this point in the history
  • Loading branch information
lptr committed Dec 23, 2023
1 parent 939e9e3 commit c8fa774
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/devices/Peripheral.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,7 @@ class PeripheralFactory : public PeripheralFactoryBase {
virtual TDeviceConfig* createDeviceConfig() = 0;

PeripheralBase* createPeripheral(const String& name, const String& jsonConfig, MqttDriver::MqttRoot mqttRoot) override {
Log.traceln("Creating peripheral: %s of type %s", name.c_str(), type.c_str());

ConfigurationFile<TConfig>* configFile = new ConfigurationFile<TConfig>(FileSystem::get(), "/peripherals/" + name + ".json");
ConfigurationFile<TConfig>* configFile = new ConfigurationFile<TConfig>(FileSystem::get(), "peripherals/" + name + ".json");
mqttRoot.subscribe("config", [name, configFile](const String&, const JsonObject& configJson) {
Log.traceln("Received configuration update for peripheral: %s", name.c_str());
configFile->update(configJson);
Expand Down

0 comments on commit c8fa774

Please sign in to comment.