Changeset 12620 in josm for trunk/src/org/openstreetmap/josm/io/MessageNotifier.java
- Timestamp:
- 2017-08-22T22:26:32+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/MessageNotifier.java
r11969 r12620 30 30 import org.openstreetmap.josm.io.auth.JosmPreferencesCredentialAgent; 31 31 import org.openstreetmap.josm.tools.GBC; 32 import org.openstreetmap.josm.tools.Logging; 32 33 import org.openstreetmap.josm.tools.Utils; 33 34 … … 86 87 } 87 88 } catch (OsmTransferException e) { 88 Main.warn(e);89 Logging.warn(e); 89 90 } 90 91 } … … 97 98 int interval = PROP_INTERVAL.get(); 98 99 if (Main.isOffline(OnlineResource.OSM_API)) { 99 Main.info(tr("{0} not available (offline mode)", tr("Message notifier")));100 Logging.info(tr("{0} not available (offline mode)", tr("Message notifier"))); 100 101 } else if (!isRunning() && interval > 0 && isUserEnoughIdentified()) { 101 102 task = EXECUTOR.scheduleAtFixedRate(WORKER, 0, TimeUnit.MINUTES.toSeconds(interval), TimeUnit.SECONDS); 102 Main.info("Message notifier active (checks every "+interval+" minute"+(interval > 1 ? "s" : "")+')');103 Logging.info("Message notifier active (checks every "+interval+" minute"+(interval > 1 ? "s" : "")+')'); 103 104 } 104 105 } … … 110 111 if (isRunning()) { 111 112 task.cancel(false); 112 Main.info("Message notifier inactive");113 Logging.info("Message notifier inactive"); 113 114 task = null; 114 115 } … … 153 154 } 154 155 } catch (CredentialsAgentException e) { 155 Main.warn(e, "Unable to get credentials:");156 Logging.log(Logging.LEVEL_WARN, "Unable to get credentials:", e); 156 157 } 157 158 }
Note:
See TracChangeset
for help on using the changeset viewer.