port more debuginfo to new debug method
This commit is contained in:
parent
500de14574
commit
e917e7305a
|
@ -140,7 +140,8 @@ namespace SparkleShare {
|
||||||
Process.StartInfo.RedirectStandardOutput = true;
|
Process.StartInfo.RedirectStandardOutput = true;
|
||||||
Process.StartInfo.UseShellExecute = false;
|
Process.StartInfo.UseShellExecute = false;
|
||||||
|
|
||||||
Console.WriteLine ("[Git][" + RepoName + "] Cloning repository...");
|
SparkleHelpers.DebugInfo ("Config",
|
||||||
|
"[" + RepoName + "] Cloning repository...");
|
||||||
|
|
||||||
// Clone into the system's temporary folder
|
// Clone into the system's temporary folder
|
||||||
Process.StartInfo.FileName = "git";
|
Process.StartInfo.FileName = "git";
|
||||||
|
@ -198,7 +199,8 @@ namespace SparkleShare {
|
||||||
// folder to the SparkleShare folder
|
// folder to the SparkleShare folder
|
||||||
Directory.Move (OldPath, NewPath);
|
Directory.Move (OldPath, NewPath);
|
||||||
|
|
||||||
Console.WriteLine ("[Git][" + RepoName + "] Repository cloned");
|
SparkleHelpers.DebugInfo ("Git",
|
||||||
|
"[" + RepoName + "] Repository cloned");
|
||||||
|
|
||||||
// Show a confirmation notification
|
// Show a confirmation notification
|
||||||
SparkleBubble FinishedBubble =
|
SparkleBubble FinishedBubble =
|
||||||
|
|
|
@ -35,7 +35,8 @@ namespace SparkleShare {
|
||||||
|
|
||||||
if (!Directory.Exists (AvatarPath)) {
|
if (!Directory.Exists (AvatarPath)) {
|
||||||
Directory.CreateDirectory (AvatarPath);
|
Directory.CreateDirectory (AvatarPath);
|
||||||
Console.WriteLine ("[Config] Created '" + AvatarPath + "'");
|
SparkleHelpers.DebugInfo ("Config",
|
||||||
|
"Created '" + AvatarPath + "'");
|
||||||
}
|
}
|
||||||
|
|
||||||
string AvatarFilePath = AvatarPath + Email;
|
string AvatarFilePath = AvatarPath + Email;
|
||||||
|
@ -109,8 +110,8 @@ namespace SparkleShare {
|
||||||
if (ShowDebugInfo) {
|
if (ShowDebugInfo) {
|
||||||
DateTime DateTime = new DateTime ();
|
DateTime DateTime = new DateTime ();
|
||||||
string TimeStamp = DateTime.Now.ToString ("HH:mm:ss");
|
string TimeStamp = DateTime.Now.ToString ("HH:mm:ss");
|
||||||
Console.WriteLine ("[" + TimeStamp + "]" +
|
Console.WriteLine ("[" + TimeStamp + "] " +
|
||||||
"[" + Type + "]" + Message);
|
"[" + Type + "] " + Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,8 @@ namespace SparkleShare {
|
||||||
if (!Directory.Exists (SparklePath)) {
|
if (!Directory.Exists (SparklePath)) {
|
||||||
|
|
||||||
Directory.CreateDirectory (SparklePath);
|
Directory.CreateDirectory (SparklePath);
|
||||||
Console.WriteLine ("[Config] Created '" + SparklePath + "'");
|
SparkleHelpers.DebugInfo ("Config",
|
||||||
|
"Created '" + SparklePath + "'");
|
||||||
|
|
||||||
// Add a special icon to the SparkleShare folder
|
// Add a special icon to the SparkleShare folder
|
||||||
switch (SparklePlatform.Name) {
|
switch (SparklePlatform.Name) {
|
||||||
|
@ -98,7 +99,6 @@ namespace SparkleShare {
|
||||||
Process.StartInfo.FileName = "gvfs-set-attribute";
|
Process.StartInfo.FileName = "gvfs-set-attribute";
|
||||||
Process.StartInfo.Arguments =
|
Process.StartInfo.Arguments =
|
||||||
Folder + " metadata::emblems [synced]";
|
Folder + " metadata::emblems [synced]";
|
||||||
// Console.WriteLine (Process.StartInfo.FileName + " " + Process.StartInfo.Arguments);
|
|
||||||
Process.Start ();
|
Process.Start ();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -148,8 +148,9 @@ namespace SparkleShare {
|
||||||
Watcher.EnableRaisingEvents = true;
|
Watcher.EnableRaisingEvents = true;
|
||||||
Watcher.Created += delegate (object o, FileSystemEventArgs args) {
|
Watcher.Created += delegate (object o, FileSystemEventArgs args) {
|
||||||
WatcherChangeTypes wct = args.ChangeType;
|
WatcherChangeTypes wct = args.ChangeType;
|
||||||
Console.WriteLine ("[Event][SparkleShare] " + wct.ToString () +
|
SparkleHelpers.DebugInfo ("Event",
|
||||||
" '" + args.Name + "'");
|
wct.ToString () +
|
||||||
|
" '" + args.Name + "'");
|
||||||
SparkleDialog SparkleDialog = new SparkleDialog ();
|
SparkleDialog SparkleDialog = new SparkleDialog ();
|
||||||
SparkleDialog.ShowAll ();
|
SparkleDialog.ShowAll ();
|
||||||
};
|
};
|
||||||
|
@ -162,11 +163,13 @@ namespace SparkleShare {
|
||||||
if (!Directory.Exists (ConfigPath)) {
|
if (!Directory.Exists (ConfigPath)) {
|
||||||
|
|
||||||
Directory.CreateDirectory (ConfigPath);
|
Directory.CreateDirectory (ConfigPath);
|
||||||
Console.WriteLine ("[Config] Created '" + ConfigPath + "'");
|
SparkleHelpers.DebugInfo ("Config",
|
||||||
|
"Created '" + ConfigPath + "'");
|
||||||
|
|
||||||
// Create a place to store the avatars
|
// Create a place to store the avatars
|
||||||
Directory.CreateDirectory (AvatarPath);
|
Directory.CreateDirectory (AvatarPath);
|
||||||
Console.WriteLine ("[Config] Created '" + AvatarPath + "avatars'");
|
SparkleHelpers.DebugInfo ("Config",
|
||||||
|
"Created '" + AvatarPath + "'");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue