From 82d992fc67839b2d5000ff5553dc5cc2caa984a8 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Thu, 24 May 2018 16:15:08 -0400 Subject: [PATCH] Debugging output for subscription issue --- SoObjects/SOGo/SOGoGCSFolder.m | 1 + SoObjects/SOGo/SOGoParentFolder.m | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/SoObjects/SOGo/SOGoGCSFolder.m b/SoObjects/SOGo/SOGoGCSFolder.m index 4770c864f..9b8a5977d 100644 --- a/SoObjects/SOGo/SOGoGCSFolder.m +++ b/SoObjects/SOGo/SOGoGCSFolder.m @@ -1004,6 +1004,7 @@ static NSArray *childRecordFields = nil; [folderSubscription removeObject: subscriptionPointer]; } + [self debugWithFormat: @"Update subscriptions for @%: %@", [sogoUser login], folderSubscription]; [us synchronize]; rc = YES; diff --git a/SoObjects/SOGo/SOGoParentFolder.m b/SoObjects/SOGo/SOGoParentFolder.m index ae523f935..99b23006e 100644 --- a/SoObjects/SOGo/SOGoParentFolder.m +++ b/SoObjects/SOGo/SOGoParentFolder.m @@ -348,8 +348,11 @@ static SoSecurityManager *sm = nil; [subscribedReferences removeObject: currentKey]; [folderDisplayNames removeObjectForKey: currentKey]; if ([owner isEqualToString: activeUser]) - // Synchronize settings only if the subscription is owned by the active user - dirty = YES; + { + // Synchronize settings only if the subscription is owned by the active user + dirty = YES; + [self errorWithFormat: @"%@ lost access to %@", owner, currentKey]; + } } }