2 ms·
Generally you shouldn’t be logging errors at the point where you are (re-)throwing them. Otherwise you will likely end up logging the same error twice, or even
by pimlottc 4y ago
Generally you shouldn’t be logging errors at the point where you are (re-)throwing them. Otherwise you will likely end up logging the same error twice, or even worse, logging an error that is actually safely handled by code higher up the stack.