File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
google-http-client/src/main/java/com/google/api/client/util/store Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 22
22
import java .util .Map ;
23
23
import java .util .concurrent .locks .Lock ;
24
24
import java .util .concurrent .locks .ReentrantLock ;
25
+ import java .util .logging .Logger ;
25
26
import java .util .regex .Pattern ;
26
27
27
28
/**
@@ -48,7 +49,7 @@ public abstract class AbstractDataStoreFactory implements DataStoreFactory {
48
49
try {
49
50
ID_PATTERN = Pattern .compile ("\\ w{1,30}" );
50
51
} catch (Throwable t ) {
51
- System . out . println (t .getMessage ());
52
+ Logger . getLogger ( AbstractDataStoreFactory . class . getName ()). severe (t .getMessage ());
52
53
throw t ;
53
54
}
54
55
}
Original file line number Diff line number Diff line change 24
24
import java .io .FileOutputStream ;
25
25
import java .io .IOException ;
26
26
import java .io .Serializable ;
27
- import java .lang .System .Logger .Level ;
28
27
import java .nio .file .Files ;
29
28
import java .nio .file .Path ;
30
29
import java .nio .file .Paths ;
@@ -62,10 +61,7 @@ public class FileDataStoreFactory extends AbstractDataStoreFactory {
62
61
IS_WINDOWS =
63
62
StandardSystemProperty .OS_NAME .value ().toLowerCase (Locale .ENGLISH ).startsWith ("windows" );
64
63
} catch (Throwable ex ) {
65
- //Logger.getLogger(FileDataStoreFactory.class.getName()).severe(ex.getMessage());
66
- ex .printStackTrace ();
67
- System .out .println ("*********************************************************" );
68
- System .out .println (ex .getMessage ());
64
+ Logger .getLogger (FileDataStoreFactory .class .getName ()).severe (ex .getMessage ());
69
65
throw ex ;
70
66
}
71
67
}
You can’t perform that action at this time.
0 commit comments