Skip to content

Commit

Permalink
Go to Start/Stop suppressing from @pawelbaran comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraser Greenroyd committed Feb 16, 2024
1 parent b9efd19 commit 5af7e08
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 46 deletions.
12 changes: 11 additions & 1 deletion BHoM_Engine/Compute/SuppressRecording.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,21 @@ public static partial class Compute
[Input("suppressErrors", "Determine whether to suppress BHoM Events of type ERROR from the log. Set to true to suppress these events.")]
[Input("suppressWarnings", "Determine whether to suppress BHoM Events of type WARNING from the log. Set to true to suppress these events.")]
[Input("suppressNotes", "Determine whether to suppress BHoM Events of type NOTE from the log. Set to true to suppress these events.")]
public static void SuppressRecordingEvents(bool suppressErrors = false, bool suppressWarnings = false, bool suppressNotes = false)
public static void StartSuppressRecordingEvents(bool suppressErrors = false, bool suppressWarnings = false, bool suppressNotes = false)
{
m_SuppressError = suppressErrors;
m_SuppressWarning = suppressWarnings;
m_SuppressNote = suppressNotes;
}

/***************************************************/

[Description("Switch on the entire logging system used within BHoM. By default all recording systems are switched on when BHoM is initialised. Events of all types will be logged after this component has been used regardless of which ones were previously suppressed.")]
public static void StopSuppressRecordingEvents()
{
m_SuppressError = false;
m_SuppressWarning = false;
m_SuppressNote = false;
}
}
}
45 changes: 0 additions & 45 deletions BHoM_Engine/Compute/UnsuppressRecording.cs

This file was deleted.

0 comments on commit 5af7e08

Please sign in to comment.