aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Gobbledegook.cpp2
-rw-r--r--src/Init.cpp3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/Gobbledegook.cpp b/src/Gobbledegook.cpp
index f2e3ef8..5fa0fe8 100644
--- a/src/Gobbledegook.cpp
+++ b/src/Gobbledegook.cpp
@@ -478,7 +478,7 @@ int ggkStart(const char *pServiceName, const char *pAdvertisingName, const char
}
}, nullptr);
- Logger::info("Starting GGK server");
+ Logger::info(SSTR << "Starting GGK server '" << pAdvertisingName << "'");
// Allocate our server
TheServer = std::make_shared<Server>(pServiceName, pAdvertisingName, pAdvertisingShortName, getter, setter);
diff --git a/src/Init.cpp b/src/Init.cpp
index 867b166..9be0ee2 100644
--- a/src/Init.cpp
+++ b/src/Init.cpp
@@ -762,14 +762,13 @@ void configureAdapter()
if (advertisingName != pInfo->name || advertisingShortName != pInfo->shortName)
{
+ Logger::info(SSTR << "Setting advertising name to '" << advertisingName << "' (with short name: '" << advertisingShortName << "')");
if (!mgmt.setName(advertisingName.c_str(), advertisingShortName.c_str()))
{
setRetryFailure();
return;
}
}
-
- Logger::info(SSTR << "BLE advertising name set to '" << advertisingName << "' (with short name: '" << advertisingShortName << "')");
}
// Turn it back on