diff options
Diffstat (limited to 'frontends/cocoa/fetch.m')
-rw-r--r-- | frontends/cocoa/fetch.m | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/frontends/cocoa/fetch.m b/frontends/cocoa/fetch.m index 74ba9afa3..1e3e5af13 100644 --- a/frontends/cocoa/fetch.m +++ b/frontends/cocoa/fetch.m @@ -50,13 +50,13 @@ static const char *fetch_filetype(const char *unix_path) uti = [[NSWorkspace sharedWorkspace] typeOfFile:[NSString stringWithUTF8String:unix_path] error:&utiError]; if (nil != uti) { - LOG("Looking for mimetype from uti \"%s\"", [uti UTF8String]); + NSLOG(netsurf, INFO, "Looking for mimetype from uti \"%s\"", [uti UTF8String]); mimeType = (__bridge_transfer NSString *)UTTypeCopyPreferredTagWithClass((__bridge CFStringRef)uti, kUTTagClassMIMEType); } else { NSAlert *utiAlert = [NSAlert alertWithError:utiError]; [utiAlert runModal]; // Ignore return value. - LOG("uti call failed"); + NSLOG(netsurf, INFO, "uti call failed"); strncpy(cocoafiletype, "text/html", sizeof(cocoafiletype)); return cocoafiletype; @@ -67,13 +67,13 @@ static const char *fetch_filetype(const char *unix_path) } else { const char *extension; - LOG("mimetype from uti failed"); + NSLOG(netsurf, INFO, "mimetype from uti failed"); extension = [(__bridge_transfer NSString *)UTTypeCopyPreferredTagWithClass((__bridge CFStringRef)uti, kUTTagClassFilenameExtension) UTF8String]; if (extension == NULL) { /* give up and go with default */ - LOG("No extension going with default type"); + NSLOG(netsurf, INFO, "No extension going with default type"); strncpy(cocoafiletype, "text/html", sizeof(cocoafiletype)); } else { int eidx = 0; /* index of extension entry */ @@ -88,7 +88,7 @@ static const char *fetch_filetype(const char *unix_path) } } - LOG("\tMIME type for '%s' is '%s'", unix_path, cocoafiletype); + NSLOG(netsurf, INFO, "\tMIME type for '%s' is '%s'", unix_path, cocoafiletype); return cocoafiletype; } |