Project

General

Profile

« Previous | Next » 

Revision a6cc90d1

Added by Andreas Kohlbecker over 4 years ago

ref #8706 reporting error time in messages

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/model/MessagingUtils.java
2 2

  
3 3
import java.io.PrintWriter;
4 4
import java.io.StringWriter;
5
import java.time.LocalDateTime;
6
import java.time.format.DateTimeFormatter;
5 7
import java.util.ArrayList;
6 8
import java.util.List;
7 9

  
......
203 205
        } catch (Exception e) {
204 206
            // Nothing to do
205 207
        }
208

  
209
        // add time stamps
210
        LocalDateTime date = LocalDateTime.now();
211
        String dateTimeStr = date.format(DateTimeFormatter.ISO_DATE_TIME);
212

  
213
        contextInfo.add("time : " + dateTimeStr);
206 214
        contextInfo.add("login : " + login);
207 215
        contextInfo.add("editor version : " + version);
208 216
        contextInfo.add("server : " + server + " (" + name + ")" + (CdmUtils.isNotBlank(contextPath)?" / "+contextPath:""));
......
317 325
            boolean showReason) {
318 326

  
319 327
        Throwable throwable = t;
320
        StringBuffer sbStackTrace = new StringBuffer();
321 328

  
322 329
        // We need to build a MultiStatus object since the simple
323 330
        // idea of writing out the stack trace as a single string
......
408 415

  
409 416
            @Override
410 417
            public void run() {
411
                MultiStatus info = null;
418

  
412 419
                String title = null;
413 420

  
414 421
                // FIXME cannot access TaxonomicEditorPlugin.PLUGIN_ID from here
422
                // FIXME is there any reason for keeping the lines below?
415 423
                // String PID = TaxonomicEditorPlugin.PLUGIN_ID;
416
                String PID = "eu.etaxonomy.taxeditor.application";
424
                // String PID = "eu.etaxonomy.taxeditor.application";
417 425

  
418 426
                // checking security exceptions for every operation
419 427
                RuntimeException securityRuntimeException = SecurityExceptionUtils.findSecurityRuntimeException(ex);

Also available in: Unified diff