mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Missed a couple logger statements
This commit is contained in:
@@ -354,25 +354,25 @@ or 'b' to go back to the previous menu:");
|
|||||||
// Check to see if the second argument is a file that exists
|
// Check to see if the second argument is a file that exists
|
||||||
if (filename != "" && File.Exists(filename))
|
if (filename != "" && File.Exists(filename))
|
||||||
{
|
{
|
||||||
Console.WriteLine("Beginning import of " + filename);
|
logger.Log("Beginning import of " + filename);
|
||||||
Import imp = new Import(filename, _connectionString, logger);
|
Import imp = new Import(filename, _connectionString, logger);
|
||||||
imp.ImportData();
|
imp.ImportData();
|
||||||
Console.WriteLine(filename + " imported!");
|
logger.Log(filename + " imported!");
|
||||||
}
|
}
|
||||||
// Check to see if the second argument is a directory that exists
|
// Check to see if the second argument is a directory that exists
|
||||||
else if (filename != "" && Directory.Exists(filename))
|
else if (filename != "" && Directory.Exists(filename))
|
||||||
{
|
{
|
||||||
foreach (string file in Directory.GetFiles(filename, "*", SearchOption.TopDirectoryOnly))
|
foreach (string file in Directory.GetFiles(filename, "*", SearchOption.TopDirectoryOnly))
|
||||||
{
|
{
|
||||||
Console.WriteLine("Beginning import of " + file);
|
logger.Log("Beginning import of " + file);
|
||||||
Import imp = new Import(file, _connectionString, logger);
|
Import imp = new Import(file, _connectionString, logger);
|
||||||
imp.ImportData();
|
imp.ImportData();
|
||||||
Console.WriteLine(file + " imported!");
|
logger.Log(file + " imported!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Console.WriteLine("I'm sorry but " + filename + "doesn't exist!");
|
logger.Log("I'm sorry but " + filename + "doesn't exist!");
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user