mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-24 04:46:01 +08:00
Ensure that logging is configured on first invocation of RKLogConfigureByName. This
allows you to initialize the log level before you have configured any other part of the framework.
This commit is contained in:
@@ -12,7 +12,7 @@ static BOOL loggingInitialized = NO;
|
||||
|
||||
void RKLogInitialize() {
|
||||
if (loggingInitialized == NO) {
|
||||
RKLogConfigureByName("RestKit*", RKLogLevelDefault);
|
||||
lcl_configure_by_name("RestKit*", RKLogLevelDefault);
|
||||
RKLogInfo(@"RestKit initialized...");
|
||||
loggingInitialized = YES;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user