Skip to content

Commit 62af5ad

Browse files
committed
fix logger code
1 parent 9e4677e commit 62af5ad

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/com/danga/MemCached/Logger.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public static synchronized Logger getLogger( String name ) {
103103
* @param mesg
104104
* @param ex
105105
*/
106-
private void log( String mesg, Exception ex ) {
106+
private void log( String mesg, Throwable ex ) {
107107
System.out.println( name + " " + new Date() + " - " + mesg );
108108
if ( ex != null )
109109
ex.printStackTrace( System.out );
@@ -115,7 +115,7 @@ private void log( String mesg, Exception ex ) {
115115
* @param mesg
116116
* @param ex
117117
*/
118-
public void debug( String mesg, Exception ex ) {
118+
public void debug( String mesg, Throwable ex ) {
119119
if ( this.level > LEVEL_DEBUG )
120120
return;
121121

@@ -136,7 +136,7 @@ public boolean isDebugEnabled() {
136136
* @param mesg
137137
* @param ex
138138
*/
139-
public void info( String mesg, Exception ex ) {
139+
public void info( String mesg, Throwable ex ) {
140140
if ( this.level > LEVEL_INFO )
141141
return;
142142

@@ -157,7 +157,7 @@ public boolean isInfoEnabled() {
157157
* @param mesg
158158
* @param ex
159159
*/
160-
public void warn( String mesg, Exception ex ) {
160+
public void warn( String mesg, Throwable ex ) {
161161
if ( this.level > LEVEL_WARN )
162162
return;
163163

@@ -174,7 +174,7 @@ public void warn( String mesg ) {
174174
* @param mesg
175175
* @param ex
176176
*/
177-
public void error( String mesg, Exception ex ) {
177+
public void error( String mesg, Throwable ex ) {
178178
if ( this.level > LEVEL_ERROR )
179179
return;
180180

@@ -191,7 +191,7 @@ public void error( String mesg ) {
191191
* @param mesg
192192
* @param ex
193193
*/
194-
public void fatal( String mesg, Exception ex ) {
194+
public void fatal( String mesg, Throwable ex ) {
195195
if ( this.level > LEVEL_FATAL )
196196
return;
197197

src/com/danga/MemCached/SockIOPool.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1901,7 +1901,6 @@ protected void finalize() throws Throwable {
19011901
}
19021902
catch ( Throwable t ) {
19031903
log.error( t.getMessage(), t );
1904-
19051904
}
19061905
finally {
19071906
super.finalize();

0 commit comments

Comments
 (0)