~tritone-team/tritone/eucalyptus

« back to all changes in this revision

Viewing changes to clc/modules/msgs/src/main/java/edu/ucsb/eucalyptus/msgs/EventRecord.java

  • Committer: Bazaar Package Importer
  • Author(s): Dustin Kirkland
  • Date: 2009-12-01 21:09:28 UTC
  • mto: This revision was merged to the branch mainline in revision 75.
  • Revision ID: james.westby@ubuntu.com-20091201210928-o2dvg0ubljhb0ft6
Tags: upstream-1.6.1~bzr1083
ImportĀ upstreamĀ versionĀ 1.6.1~bzr1083

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
import org.mule.api.MuleEvent;
5
5
 
6
6
import com.eucalyptus.bootstrap.Component;
 
7
import com.eucalyptus.util.DebugUtil;
7
8
 
8
9
import edu.ucsb.eucalyptus.constants.EventType;
9
10
 
25
26
    this.eventCorrelationId = eventCorrelationId;
26
27
    this.eventId = eventId;
27
28
    this.other = ":" + other;
28
 
    StackTraceElement ste = Thread.currentThread().getStackTrace( )[distance];
29
 
    this.caller = String.format( "%s.%s.%d", ste.getFileName( ).replaceAll( "\\.\\w*\\b", "" ), ste.getMethodName( ), ste.getLineNumber( ) );
 
29
    if( DebugUtil.DEBUG ) {
 
30
      StackTraceElement ste = Thread.currentThread().getStackTrace( )[distance];
 
31
      this.caller = String.format( "%s.%s.%d", ste.getFileName( ).replaceAll( "\\.\\w*\\b", "" ), ste.getMethodName( ), ste.getLineNumber( ) );
 
32
    } else {
 
33
      this.caller = "n.a";
 
34
    }
30
35
  }
31
36
  
32
37
  private static EucalyptusMessage getBogusMessage( ) {