lib: Fix print formatting

This commit is contained in:
Hylke Bons 2016-03-28 15:49:32 +01:00
parent d047a5f2d5
commit e27af86866

View file

@ -36,8 +36,12 @@ namespace SparkleLib {
new public void Start ()
{
SparkleLogger.LogInfo ("Cmd | " + Path.GetFileName (StartInfo.WorkingDirectory),
Path.GetFileName (StartInfo.FileName) + " " + StartInfo.Arguments);
string folder = "";
if (!string.IsNullOrEmpty (StartInfo.WorkingDirectory))
folder = Path.GetFileName (StartInfo.WorkingDirectory) + " | ";
SparkleLogger.LogInfo ("Cmd", folder + Path.GetFileName (StartInfo.FileName) + " " + StartInfo.Arguments);
try {
base.Start ();