mirror of
https://github.com/esphome/esphome.git
synced 2025-09-09 14:52:20 +01:00
[core] Centralize component setup logging to reduce flash usage (#9885)
This commit is contained in:
@@ -45,7 +45,6 @@ static const char *const TAG = "wifi";
|
||||
float WiFiComponent::get_setup_priority() const { return setup_priority::WIFI; }
|
||||
|
||||
void WiFiComponent::setup() {
|
||||
ESP_LOGCONFIG(TAG, "Running setup");
|
||||
this->wifi_pre_setup_();
|
||||
if (this->enable_on_boot_) {
|
||||
this->start();
|
||||
@@ -261,10 +260,8 @@ void WiFiComponent::setup_ap_config_() {
|
||||
}
|
||||
this->ap_.set_ssid(name);
|
||||
}
|
||||
|
||||
ESP_LOGCONFIG(TAG, "Setting up AP");
|
||||
|
||||
ESP_LOGCONFIG(TAG,
|
||||
"Setting up AP:\n"
|
||||
" AP SSID: '%s'\n"
|
||||
" AP Password: '%s'",
|
||||
this->ap_.get_ssid().c_str(), this->ap_.get_password().c_str());
|
||||
|
Reference in New Issue
Block a user