1 /*
2  * Created on 01-Feb-2006
3  * Created by Paul Gardner
4  * Copyright (C) Azureus Software, Inc, All Rights Reserved.
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
17  *
18  */
19 
20 package org.gudy.azureus2.core3.util;
21 
22 public class
23 DebugLight
24 {
25 	/**
26 	 * Used in environments where full debug may not be available
27 	 * @param e
28 	 */
29 
30 	public static void
printStackTrace( Throwable e )31 	printStackTrace(
32 		Throwable e )
33 	{
34 		try{
35 			Debug.printStackTrace( e );
36 
37 		}catch( Throwable f ){
38 
39 			e.printStackTrace();
40 		}
41 	}
42 
43 	public static void
out( String str )44 	out(
45 		String	str )
46 	{
47 		try{
48 			Debug.out( str );
49 
50 		}catch( Throwable f ){
51 
52 			System.out.println( str );
53 		}
54 	}
55 }
56