Skip to content

Commit

Permalink
Merge pull request #519 from storybuilder-org/RespectElmahLogging
Browse files Browse the repository at this point in the history
  • Loading branch information
terrycox authored Feb 27, 2023
2 parents e363c17 + 952feb8 commit 72a8be6
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions StoryBuilder/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,17 @@ protected override async void OnLaunched(LaunchActivatedEventArgs args)
else
{
//TODO: check elmah is bypassed when logging is disabled by user.
await _log.AddElmahTarget();
if (GlobalData.ElmahLogging) {_log.Log(LogLevel.Info, "elmah.io log target added");}
else // can have several reasons (no doppler, or an error adding the target)
if (GlobalData.ElmahLogging)
{
await _log.AddElmahTarget();
_log.Log(LogLevel.Info, "elmah.io log target added");
}
else // can have several reasons (no doppler, or an error adding the target){
{
_log.Log(LogLevel.Info, "elmah.io log target bypassed");
}


}

string pathMsg = string.Format("Configuration data location = " + GlobalData.RootDirectory);
Expand Down

0 comments on commit 72a8be6

Please sign in to comment.