Skip to content

Commit

Permalink
Log connection error
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisreimann committed Jan 16, 2025
1 parent b914cc0 commit 172b3e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions BTCPayApp.Core/BTCPayServer/BTCPayConnectionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,11 @@ private async Task OnConnectionChanged(object? sender, (BTCPayConnectionState Ol
break;
}
}
catch (Exception ex)
{
_logger.LogError(ex, "Error while changing connection state from {Old} to {New}", e.Old, e.New);
throw;
}
finally
{
_ = Task.Run(() => ConnectionState = newState);
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ If BTCPay Server does not start up with the app and its dependencies, run this:

```bash
cd BTCPayApp.Core
dotnet publish /p:RazorCompileOnBuild=true -o ../BTCPayServer.Plugins.App/bin/Debug/net8.0
dotnet publish -c Debug -o ../BTCPayServer.Plugins.App/bin/Debug/net8.0
cd -
cd BTCPayServer.Plugins.App
dotnet publish /p:RazorCompileOnBuild=true -o bin/Debug/net8.0
dotnet publish -c Debug -o bin/Debug/net8.0
cd -
```

Expand Down

0 comments on commit 172b3e7

Please sign in to comment.