MODiX icon indicating copy to clipboard operation
MODiX copied to clipboard

DiscordSerilogAdapter seems to not receive log events from the Web Request pipeline, only from the Bot Request pipeline

Open JakenVeina opened this issue 6 years ago • 1 comments

This is gonna need some investigation, as everything SEEMS to be setup properly.

The only thing I spot that's out of place is that LoggerConfiguration is being built and injected into Serilog via the static class Log API, within Main() in Program.cs outside of the context of the Web Request pipeline. This should probably be moved inside the call to .UseSerilog() farther down within the file, which has an overload that takes a LoggerConfiguration builder delegate.

If that doesn't do it, I dunno. Errors during web requests definitely make it into the rolling log file, but not into the #modix-log channel.

JakenVeina avatar Dec 01 '19 19:12 JakenVeina

I wasn't able to reproduce this. My Modix instance didn't have correct permissions and web requests that caused permission exceptions were correctly logged to the webhook.

NullEntity avatar Dec 09 '19 03:12 NullEntity

As part of a new effort to refocus on priorities, I will close this. If you feel this is imperative to the bot, a new issue can be opened to supersede this.

patrickklaeren avatar Mar 26 '24 14:03 patrickklaeren