Skip to main content

All Questions

Tagged with
0 votes
1 answer
84 views

I need to use some query results in an alert email notification in Azure ApplicationInsights

Ok I have an Application Insights resource where I am able to monitor the logs with this query: exceptions | where severityLevel >= 4 | where timestamp > ago(30m) | project timestamp, type, ...
Lombardo's user avatar
0 votes
2 answers
109 views

Logging an exception before throwing it

In my application, I have a Logger that writes messages about application behavior into a log file. If an exception is about to be thrown, I want it to be logged as well. To achieve this, I'm passing ...
K.S.'s user avatar
  • 77
0 votes
1 answer
58 views

How do I properly handle exceptions in Python without losing the traceback information?

I'm working on a Python application where I need to gracefully handle exceptions and log useful information for debugging purposes. Specifically, I want to catch exceptions that occur during runtime, ...
AkshatTm's user avatar
0 votes
1 answer
43 views

How to avoid exceptions in your application log when throwing application exception in Resteasy (Exception Mapping used)?

I spent two days trying to fix a problem with server log being flooded with unwanted exceptions so I thought it may be helpful for other people as well. They looked like this and they happened at ...
David Hladky's user avatar
0 votes
1 answer
58 views

No exceptions or logging when missing dependency with IHostedService?

A colleague of mine is working on a console app, and we had a bit of a stumble. Launching the app would simply flash up an empty console window, which would then immediately close. No breakpoints ...
ConnieMnemonic's user avatar
0 votes
1 answer
197 views

How to log a request in FastAPI when an exception occurs which is handled inside submodule?

Imagine I have a FastAPI backend application exposing the following test endpoint: @router.post("/my_test") async def post_my_test(request: Request): a = do_stuff(request.var1) b = ...
fragant's user avatar
  • 344
0 votes
1 answer
45 views

Logging Exceptions with Custom Traces in Python

I'm working on a Python program where I need to log all exceptions (with custom logger on clickhouse), including their context, to aid in debugging. Instead of simply logging the final function that ...
Miky Mike's user avatar
0 votes
2 answers
92 views

Find improper use of log method inside catch block

I attempted to solve this issue in this question previously, but attempts at using a plain regex didn't quite work. In a project I'm working on, log methods provide the following public static void ...
EarthTurtle's user avatar
1 vote
1 answer
838 views

Show details of uncaught exception in Blazor UI

We have a customer that is using a custom browser, which doesn't allow them to open the console to see the logged error messages. Unfortunately we don't have access to their system so we need to ...
Ben5's user avatar
  • 922
0 votes
1 answer
490 views

Is exception handling mandatory in MDC.remove() or MDC.put()?

import org.slf4j.MDC; MDC.put(ID1, id1); MDC.put(ID2, id2); MDC.put(ID3, id3); try { return joinPoint.proceed(); } finally { MDC....
239010391's user avatar
0 votes
0 answers
32 views

How to remove a duplicate entry in exception handling in Python?

I am trying to implement the following behavior of logger: if there is an (outer) exception - try to read a file 123. If you fail - throw inner exception. If I write code as shown below import logging ...
sixtytrees's user avatar
  • 1,233
0 votes
0 answers
63 views

Throw an exception in Debug/Debugger attached, but Log Error in Production?

There are some paths that I want to throw an Exception when I'm working / debugging, but pass (and Log an error) when in Release. This means: while working/debugging I can investigate the call stack ...
Dirk Boer's user avatar
  • 9,183
0 votes
1 answer
117 views

C# Export Logs to 2 txt files

So I have a button made from my xaml file (view), called Export. When the user clicks on it, the logs created during the run of the app get exported to Logs.txt. If there are Warnings, Errors or ...
PinkGoat_'s user avatar
0 votes
1 answer
28 views

Line number with exception logging for deployed apps

I've got a WPF application (c#) that I currently have deployed via ClickOnce. I have a class called LogTracker that catches all exceptions and appends them to a text file along with some info like the ...
m4rs___'s user avatar
  • 11
4 votes
1 answer
2k views

Google Cloud Run Jobs logging splits Exception MESSAGES with multiple lines into multiple log entries

Several days ago, a Python RuntimeError was raised in one of my company's Cloud Run jobs which stopped it. Cloud Run's logging, unfortunately, handled that RuntimeError in a bad way. It correctly put ...
HaroldFinch's user avatar

15 30 50 per page
1
2 3 4 5
44