[geary/wip/create-folders-713492] Add some debugging
- From: Charles Lindsay <clindsay src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/create-folders-713492] Add some debugging
- Date: Thu, 6 Feb 2014 02:35:51 +0000 (UTC)
commit 2acf9841dc786e81cb315f91ba54fc9d228b0a1e
Author: Charles Lindsay <chaz yorba org>
Date: Wed Feb 5 16:50:54 2014 -0800
Add some debugging
.../imap-engine/imap-engine-generic-account.vala | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/engine/imap-engine/imap-engine-generic-account.vala
b/src/engine/imap-engine/imap-engine-generic-account.vala
index 79e892d..5450662 100644
--- a/src/engine/imap-engine/imap-engine-generic-account.vala
+++ b/src/engine/imap-engine/imap-engine-generic-account.vala
@@ -472,7 +472,9 @@ private abstract class Geary.ImapEngine.GenericAccount : Geary.AbstractAccount {
GenericFolder? generic_folder = null;
Geary.FolderPath? path = information.get_special_folder_path(special);
- if (path == null) {
+ if (path != null) {
+ debug("Previously used %s for special folder %s", path.to_string(), special.to_string());
+ } else {
// This is the first time we're turning a non-special folder into a special one.
// After we do this, we'll record which one we picked in the account info.
@@ -504,8 +506,12 @@ private abstract class Geary.ImapEngine.GenericAccount : Geary.AbstractAccount {
}
if (path in folder_map.keys) {
+ debug("Promoting %s to special folder %s", path.to_string(), special.to_string());
+
generic_folder = folder_map.get(path);
} else {
+ debug("Creating %s to use as special folder %s", path.to_string(), special.to_string());
+
// TODO: ignore error due to already existing.
yield remote.create_folder_async(path, cancellable);
generic_folder = (GenericFolder) yield fetch_folder_async(path, cancellable);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]