Skip to content

Commit cf20054

Browse files
authored
Disable logging during AddCallback, which initializes too early. (#827)
This causes logging to initialize when static constructors are running. On Xcode 13, this causes a crash when Firebase App is initialized in the wrong order.
1 parent 0f6c5e2 commit cf20054

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

app/src/util.cc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,7 @@ void AppCallback::AddCallback(AppCallback* callback) {
227227
}
228228
std::string name = callback->module_name();
229229
if (callbacks_->find(name) != callbacks_->end()) {
230-
LogWarning(
231-
"%s is already registered for callbacks on app initialization, "
232-
"ignoring.",
233-
name.c_str());
234230
} else {
235-
LogDebug("Registered app initializer %s (enabled: %d)", name.c_str(),
236-
callback->enabled() ? 1 : 0);
237231
(*callbacks_)[name] = callback;
238232
}
239233
}

0 commit comments

Comments
 (0)