|
@@ -42,6 +42,7 @@ import java.util.LinkedHashSet;
|
42
|
42
|
import java.util.List;
|
43
|
43
|
import java.util.Map;
|
44
|
44
|
import java.util.Set;
|
|
45
|
+import java.util.logging.Level;
|
45
|
46
|
|
46
|
47
|
/**
|
47
|
48
|
* The identity manager manages all known identities, providing easy methods
|
|
@@ -97,14 +98,13 @@ public final class IdentityManager {
|
97
|
98
|
*/
|
98
|
99
|
public static void load() throws InvalidIdentityFileException {
|
99
|
100
|
IDENTITIES.clear();
|
100
|
|
- IDENTITIES.clear();
|
101
|
101
|
|
102
|
102
|
loadVersion();
|
103
|
103
|
loadDefaults();
|
104
|
104
|
loadUser();
|
105
|
105
|
loadConfig();
|
106
|
106
|
|
107
|
|
- if (getProfiles().size() == 0) {
|
|
107
|
+ if (getCustomIdentities("profile").isEmpty()) {
|
108
|
108
|
try {
|
109
|
109
|
Identity.buildProfile("Default Profile");
|
110
|
110
|
} catch (IOException ex) {
|
|
@@ -423,7 +423,8 @@ public final class IdentityManager {
|
423
|
423
|
IDENTITIES.add(target, identity);
|
424
|
424
|
}
|
425
|
425
|
|
426
|
|
- LOGGER.finer("Adding identity: " + identity + " (group: " + target + ")");
|
|
426
|
+ LOGGER.log(Level.FINER, "Adding identity: {0} (group: {1})",
|
|
427
|
+ new Object[]{identity, target});
|
427
|
428
|
|
428
|
429
|
synchronized (LISTENERS) {
|
429
|
430
|
for (IdentityListener listener : LISTENERS.safeGet(target)) {
|