mirror of
https://github.com/n00mkrad/flowframes.git
synced 2026-07-13 14:00:48 +02:00
Logging improvements
This commit is contained in:
@@ -382,7 +382,7 @@ namespace Flowframes
|
||||
else
|
||||
{
|
||||
SetTab("interpolation");
|
||||
Logger.Log("Selected video/directory: " + Path.GetFileName(files[0]));
|
||||
Logger.Log("Selected video/directory: " + Path.GetFileName(files[0]), true);
|
||||
inputTbox.Text = files[0];
|
||||
|
||||
bool resume = (IOUtils.GetAmountOfFiles(Path.Combine(files[0], Paths.resumeDir), true) > 0);
|
||||
|
||||
@@ -30,7 +30,8 @@ namespace Flowframes
|
||||
if (replaceLastLine)
|
||||
{
|
||||
textbox.Suspend();
|
||||
textbox.Text = textbox.Text.Remove(textbox.Text.LastIndexOf(Environment.NewLine));
|
||||
string[] lines = textbox.Text.SplitIntoLines();
|
||||
textbox.Text = string.Join(Environment.NewLine, lines.Take(lines.Count() - 1).ToArray());
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
@@ -40,7 +41,14 @@ namespace Flowframes
|
||||
if (!hidden && textbox != null)
|
||||
textbox.AppendText((textbox.Text.Length > 1 ? Environment.NewLine : "") + s);
|
||||
|
||||
textbox.Resume();
|
||||
if (replaceLastLine)
|
||||
{
|
||||
textbox.Resume();
|
||||
s = "[REPL] " + s;
|
||||
}
|
||||
|
||||
if (!hidden)
|
||||
s = "[UI] " + s;
|
||||
|
||||
LogToFile(s, false, filename);
|
||||
}
|
||||
|
||||
@@ -413,7 +413,7 @@ namespace Flowframes
|
||||
return;
|
||||
}
|
||||
|
||||
Logger.LogToFile(line, false, logFilename);
|
||||
Logger.Log(line, true, false, logFilename);
|
||||
|
||||
if (line.Contains("ff:nocuda-cpu"))
|
||||
Logger.Log("WARNING: CUDA-capable GPU device is not available, running on CPU instead!");
|
||||
|
||||
Reference in New Issue
Block a user