added cli info and journalization
This commit is contained in:
parent
1b6db26e0b
commit
3d515106fc
@ -236,16 +236,16 @@ public abstract class ClientManagement extends ServeErrors implements Runnable {
|
|||||||
else{
|
else{
|
||||||
int j = Integer.parseInt(f);
|
int j = Integer.parseInt(f);
|
||||||
if(j <= list.length){
|
if(j <= list.length){
|
||||||
j = j-1;
|
j--;
|
||||||
download(list[j]);
|
download(list[j]);
|
||||||
}
|
|
||||||
else{
|
|
||||||
System.out.println("Wrong number");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//download(f);
|
|
||||||
System.out.println("File " + f + " sucessfully downloaded");
|
System.out.println("File " + f + " sucessfully downloaded");
|
||||||
writeLog("File " + f + " sucessfully downloaded", LogLevel.Info);
|
writeLog("File " + f + " sucessfully downloaded", LogLevel.Info);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
System.out.println("File " + f + " unsucessfully downloaded, wrong number");
|
||||||
|
writeLog("File " + f + " unsucessfully downloaded, wrong number", LogLevel.Info);
|
||||||
|
}
|
||||||
|
}
|
||||||
} catch (EmptyDirectory e) {
|
} catch (EmptyDirectory e) {
|
||||||
writeLog("Server has no file in directory", LogLevel.Error);
|
writeLog("Server has no file in directory", LogLevel.Error);
|
||||||
} catch (InternalError e) {
|
} catch (InternalError e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user