feature/NewHashingAlgorithms #6

Merged
ProfessionalUwU merged 8 commits from feature/NewHashingAlgorithms into main 2023-07-04 00:34:15 +02:00
Showing only changes of commit 336eb5b73d - Show all commits

View File

@ -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");
} }
} }