Ignore:
Timestamp:
2013-09-23T16:47:50+02:00 (11 years ago)
Author:
Don-vip
Message:

Rework console output:

  • new log level "error"
  • Replace nearly all calls to system.out and system.err to Main.(error|warn|info|debug)
  • Remove some unnecessary debug output
  • Some messages are modified (removal of "Info", "Warning", "Error" from the message itself -> notable i18n impact but limited to console error messages not seen by the majority of users, so that's ok)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/oauth/OsmOAuthAuthorizationClient.java

    r6070 r6248  
    110110                    con.disconnect();
    111111                }
    112             } catch(NoSuchFieldException e) {
     112            } catch (NoSuchFieldException e) {
    113113                e.printStackTrace();
    114                 System.err.println(tr("Warning: failed to cancel running OAuth operation"));
    115             } catch(SecurityException e) {
     114                Main.warn(tr("Failed to cancel running OAuth operation"));
     115            } catch (SecurityException e) {
    116116                e.printStackTrace();
    117                 System.err.println(tr("Warning: failed to cancel running OAuth operation"));
    118             } catch(IllegalAccessException e) {
     117                Main.warn(tr("Failed to cancel running OAuth operation"));
     118            } catch (IllegalAccessException e) {
    119119                e.printStackTrace();
    120                 System.err.println(tr("Warning: failed to cancel running OAuth operation"));
     120                Main.warn(tr("Failed to cancel running OAuth operation"));
    121121            }
    122122        }
Note: See TracChangeset for help on using the changeset viewer.