mirror of
https://github.com/staxrip/staxrip.git
synced 2026-10-21 08:32:27 +08:00
Extend log by printing configurations (template, profile)
This commit is contained in:
@@ -245,6 +245,8 @@ Public Class GlobalClass
|
||||
|
||||
g.RaiseAppEvent(ApplicationEvent.BeforeProcessing)
|
||||
|
||||
Log.WriteConfiguration()
|
||||
|
||||
Log.WriteHeader($"{p.Script.Engine} Script")
|
||||
Log.WriteLine(p.Script.GetFullScript)
|
||||
|
||||
|
||||
@@ -105,6 +105,22 @@ Public Class LogBuilder
|
||||
WriteLine(EnvironmentString.FormatColumn(":"))
|
||||
End Sub
|
||||
|
||||
Shared ConfigurationString As String 'cached due to bug report
|
||||
|
||||
Sub WriteConfiguration()
|
||||
If ToString.Contains("- Configuration -") Then
|
||||
Exit Sub
|
||||
End If
|
||||
|
||||
WriteHeader("Configuration")
|
||||
|
||||
If ConfigurationString = "" Then ConfigurationString =
|
||||
$"Template: {p.TemplateName}{BR}" +
|
||||
$"Profile: {p.VideoEncoder.Name}{BR}"
|
||||
|
||||
WriteLine(ConfigurationString.FormatColumn(":"))
|
||||
End Sub
|
||||
|
||||
Sub WriteStats()
|
||||
WriteStats(StartTime)
|
||||
End Sub
|
||||
|
||||
Reference in New Issue
Block a user