Ignore:
Timestamp:
2017-08-22T22:26:32+02:00 (7 years ago)
Author:
Don-vip
Message:

see #15182 - deprecate all Main logging methods and introduce suitable replacements in Logging for most of them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/remotecontrol/RemoteControlPreference.java

    r10611 r12620  
    3939import org.openstreetmap.josm.io.remotecontrol.handler.RequestHandler;
    4040import org.openstreetmap.josm.tools.GBC;
     41import org.openstreetmap.josm.tools.Logging;
    4142import org.openstreetmap.josm.tools.PlatformHookWindows;
    4243
     
    127128                            tr("Certificate has been successfully installed.") :
    128129                            tr("Certificate is already installed. Nothing to do.");
    129                     Main.info(msg);
     130                    Logging.info(msg);
    130131                    JOptionPane.showMessageDialog(wrapper, msg);
    131132                } catch (IOException | GeneralSecurityException ex) {
    132                     Main.error(ex);
     133                    Logging.error(ex);
    133134                }
    134135            });
     
    138139                    KeyStore ks = PlatformHookWindows.getRootKeystore();
    139140                    if (ks.containsAlias(RemoteControlHttpsServer.ENTRY_ALIAS)) {
    140                         Main.info(tr("Removing certificate {0} from root keystore.", RemoteControlHttpsServer.ENTRY_ALIAS));
     141                        Logging.info(tr("Removing certificate {0} from root keystore.", RemoteControlHttpsServer.ENTRY_ALIAS));
    141142                        ks.deleteEntry(RemoteControlHttpsServer.ENTRY_ALIAS);
    142143                        msg = tr("Certificate has been successfully uninstalled.");
     
    144145                        msg = tr("Certificate is not installed. Nothing to do.");
    145146                    }
    146                     Main.info(msg);
     147                    Logging.info(msg);
    147148                    JOptionPane.showMessageDialog(wrapper, msg);
    148149                } catch (KeyStoreException | NoSuchAlgorithmException | CertificateException | IOException ex) {
    149                     Main.error(ex);
     150                    Logging.error(ex);
    150151                }
    151152            });
Note: See TracChangeset for help on using the changeset viewer.