[chronojump] Fixing potentially problem with LogB
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixing potentially problem with LogB
- Date: Fri, 16 Jan 2015 17:34:06 +0000 (UTC)
commit 17a2e23e79d7e9250e3f47f0c5ad0da35eff8a61
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Jan 16 18:33:42 2015 +0100
Fixing potentially problem with LogB
src/gui/encoder.cs | 12 ++++++------
src/logB.cs | 3 +++
2 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index 8d4b6a9..52d2f5b 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -4829,7 +4829,7 @@ LogB.Debug("D");
}
}
- LogB.Debug(" Cap:" + encoderThread.ThreadState.ToString());
+ LogB.Debug(" Cap:", encoderThread.ThreadState.ToString());
} else if(capturingCsharp == encoderCaptureProcess.STOPPING) {
//stop video
encoderStopVideoRecord();
@@ -4837,7 +4837,7 @@ LogB.Debug("D");
} else { //STOPPED
//do curves, capturingCsharp has ended
updatePulsebar(encoderActions.CURVES); //activity on pulsebar
- LogB.Debug(" Cur:" + encoderThread.ThreadState.ToString());
+ LogB.Debug(" Cur:", encoderThread.ThreadState.ToString());
}
Thread.Sleep (25);
@@ -4858,7 +4858,7 @@ LogB.Debug("D");
updateEncoderCaptureGraph(true, false, false); //graphSignal, not calcCurves, not
plotCurvesBars
Thread.Sleep (25);
- LogB.Debug(" CapIM:" + encoderThread.ThreadState.ToString());
+ LogB.Debug(" CapIM:", encoderThread.ThreadState.ToString());
return true;
}
@@ -4878,7 +4878,7 @@ LogB.Debug("D");
}
updatePulsebar(encoderActions.CURVES); //activity on pulsebar
Thread.Sleep (50);
- LogB.Debug(" Cur:" + encoderThread.ThreadState.ToString());
+ LogB.Debug(" Cur:", encoderThread.ThreadState.ToString());
return true;
}
@@ -4897,7 +4897,7 @@ LogB.Debug("D");
}
updatePulsebar(encoderActions.LOAD); //activity on pulsebar
Thread.Sleep (50);
- LogB.Debug(" L:" + encoderThread.ThreadState.ToString());
+ LogB.Debug(" L:", encoderThread.ThreadState.ToString());
return true;
}
@@ -4916,7 +4916,7 @@ LogB.Debug("D");
}
updatePulsebar(encoderActions.ANALYZE); //activity on pulsebar
Thread.Sleep (50);
- LogB.Debug(" A:" + encoderThread.ThreadState.ToString());
+ LogB.Debug(" A:", encoderThread.ThreadState.ToString());
return true;
}
diff --git a/src/logB.cs b/src/logB.cs
index 8ed8aa5..d7653ed 100644
--- a/src/logB.cs
+++ b/src/logB.cs
@@ -123,6 +123,9 @@ public static class LogB
public static void Commit(LogEntryType type, string message, string details, bool showUser)
{
+ if(message == null)
+ return;
+
if(type == LogEntryType.Debug && !Debugging) {
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]