mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-10-22 16:17:47 +00:00
Created logger with log levels
This commit is contained in:
1 parent
0c36754ebe
commit
e3dd4e7238
26 files changed
+182
-113
No files matched your search
@@ -42,13 +42,13 @@
|
||||
_elements = [[NSMutableDictionary alloc] init];
|
||||
xmlDocPtr docPtr = xmlParseMemory([self.data bytes], (int)[self.data length]);
|
||||
if (docPtr == NULL) {
|
||||
NSLog(@"ERROR: An error occured trying to parse xml.");
|
||||
Log(LOG_W, @"An error occured trying to parse xml.");
|
||||
return;
|
||||
}
|
||||
|
||||
xmlNodePtr node = xmlDocGetRootElement(docPtr);
|
||||
if (node == NULL) {
|
||||
NSLog(@"ERROR: No root XML element.");
|
||||
Log(LOG_W, @"No root XML element.");
|
||||
xmlFreeDoc(docPtr);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user