summaryrefslogtreecommitdiffstats
path: root/macosx/HBDistributedArray.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2016-01-09 10:03:12 +0100
committerDamiano Galassi <[email protected]>2016-01-09 10:03:12 +0100
commite7da0b5d45127c6db240bb6cfe5920e6ea6808d4 (patch)
tree2c169eeb2306fe686d4cca0cfe17fc9da17ada12 /macosx/HBDistributedArray.m
parent6cedf950197617427ad264aad16a12a8989e119b (diff)
MacGui: added some error logs to the queue.
Diffstat (limited to 'macosx/HBDistributedArray.m')
-rw-r--r--macosx/HBDistributedArray.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/macosx/HBDistributedArray.m b/macosx/HBDistributedArray.m
index 97b8378c3..d5cb38976 100644
--- a/macosx/HBDistributedArray.m
+++ b/macosx/HBDistributedArray.m
@@ -5,6 +5,7 @@
It may be used under the terms of the GNU General Public License. */
#import "HBDistributedArray.h"
+#import "HBUtilities.h"
#include <semaphore.h>
@@ -90,7 +91,7 @@ NSString *HBDistributedArraWrittenToDisk = @"HBDistributedArraWrittenToDisk";
_mutex = sem_open(name, O_CREAT, 0777, 1);
if (_mutex == SEM_FAILED)
{
- NSLog(@"%s: %d\n", "Error in creating semaphore: ", errno);
+ [HBUtilities writeToActivityLog:"%s: %d\n", "Error in creating semaphore: ", errno];
}
[[NSDistributedNotificationCenter defaultCenter] addObserver:self selector:@selector(handleNotification:) name:HBDistributedArraWrittenToDisk object:nil];
@@ -152,7 +153,6 @@ NSString *HBDistributedArraWrittenToDisk = @"HBDistributedArraWrittenToDisk";
// File was modified while we waited on the lock
// reload it
[self reload];
- NSLog(@"WTF");
return HBDistributedArrayContentReload;
}
@@ -253,7 +253,7 @@ NSString *HBDistributedArraWrittenToDisk = @"HBDistributedArraWrittenToDisk";
if (![NSKeyedArchiver archiveRootObject:temp toFile:self.fileURL.path])
{
- NSLog(@"failed to write the queue to disk");
+ [HBUtilities writeToActivityLog:"Failed to write the queue to disk"];
}
// Send a distributed notification.