Skip to content

Commit 3e67c5b

Browse files
smilesa-maurice
authored andcommitted
Fix database log level test on Android.
On Android it's only possible to configure the log level before any operations have been performed on the object. This modifies the Unity log level test to use a pristine database object. This also updates API documentation with the restriction. PiperOrigin-RevId: 255409058
1 parent afe8dfb commit 3e67c5b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

database/src/include/firebase/database.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ class Database {
165165

166166
/// Set the log verbosity of this object.
167167
///
168+
/// @note On Android this can only be set before any operations have been
169+
/// performed with the object.
170+
///
168171
/// @param[in] log_level Log level, by default this is set to kLogLevelInfo.
169172
void set_log_level(LogLevel log_level);
170173

0 commit comments

Comments
 (0)