Fix logging
This commit is contained in:
parent
b011f08172
commit
336eb5b73d
@ -204,7 +204,6 @@ public class ChksumUtils {
|
|||||||
ConnectionMultiplexer redis = ConnectionMultiplexer.Connect("localhost");
|
ConnectionMultiplexer redis = ConnectionMultiplexer.Connect("localhost");
|
||||||
IDatabase db = redis.GetDatabase();
|
IDatabase db = redis.GetDatabase();
|
||||||
|
|
||||||
|
|
||||||
if (getTotalFileCount() < 1) {
|
if (getTotalFileCount() < 1) {
|
||||||
logger.Information("There were no files to checksum");
|
logger.Information("There were no files to checksum");
|
||||||
return;
|
return;
|
||||||
@ -351,9 +350,7 @@ public class ChksumUtils {
|
|||||||
command2.Parameters.AddWithValue("$filehash", fileHash);
|
command2.Parameters.AddWithValue("$filehash", fileHash);
|
||||||
command2.ExecuteNonQuery();
|
command2.ExecuteNonQuery();
|
||||||
|
|
||||||
//Console.WriteLine("File moved or is a duplicate:");
|
logger.Verbose("File moved or is a duplicate:\n\tfrom\t{pathToFile}\n\tto \t{pathtofile}\n", pathToFile, pathtofile);
|
||||||
//Console.WriteLine($"\tfrom\t{pathToFile}");
|
|
||||||
//Console.WriteLine($"\tto \t{pathtofile}\n");
|
|
||||||
wasMoved = true;
|
wasMoved = true;
|
||||||
}
|
}
|
||||||
logger.Verbose("{fileName} which is located at {pathToFile} relative to the database with the hash {fileHash} was successfully checked", fileName, pathToFile, fileHash);
|
logger.Verbose("{fileName} which is located at {pathToFile} relative to the database with the hash {fileHash} was successfully checked", fileName, pathToFile, fileHash);
|
||||||
@ -466,6 +463,6 @@ public class ChksumUtils {
|
|||||||
|
|
||||||
public void cleanup() {
|
public void cleanup() {
|
||||||
File.Delete(libraryPath);
|
File.Delete(libraryPath);
|
||||||
logger.Debug("Successfully deleted libe_sqlite3.so");
|
logger.Information("Successfully deleted libe_sqlite3.so");
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user