2

私は同じ質問がここで尋ねられたことを知っています: How to remove the stacktrace from the standard ServiceStack error respose

しかし、何を試しても問題ありません。リモートリクエストでも、ResponseStatus から StackTrace を削除できませんでした。

SetConfig(new EndpointHostConfig { DebugMode = false, });

が機能していないか、機能させることができませんでした。アドバイスは非常に役立ちます。

thnx

4

1 に答える 1

0

これは実際には期待どおりに機能します。これはそうするLOCです

if (EndpointHost.UserConfig.DebugMode)
{
    // View stack trace in tests and on the client
    responseStatus.StackTrace = GetRequestErrorBody() + ex;
}
于 2012-07-24T16:04:23.390 に答える