0

我有一个使用 Flask Security 构建的 GAE 应用程序(顺便说一句,这很棒)。一切都很好,但我在我的 GAE 日志中遇到了这样的错误:

/.../lib/passlib/crypto/digest.py:414:PasslibRuntimeWarning:摘要名称不一致:'md5' 解析为 <built-in function new>,报告名称为 'MD5'

尽管上面的消息说这是一个警告,但 GAE 日志将其报告为错误。

我想从我的 GAE 日志中删除这些错误,以便专注于实际错误。

有没有可以更改以避免此错误的md5地方MD5

4

1 回答 1

1

If you want to stop receiving those particular logs, the solution would be to use exclusion filters. That way you can precisely determine which logs you don't want to see.

To do that, head to the Logging menu in the console and select "Resource usage". Inside that menu you will find an "Exclusion" tags. Once in that tab, select the "Create exclusion" option.

You will be redirected to the Logging page, with an "Exclusion editor" side menu. There you can define the parameters for your exclusion, such as the name, a description of the log entries you want to exclude (such as those where "inconsistent digest name MD5" appears) and the percent to exclude (if you want all of those log entries gone, use 100). After that, click "Create exclusion" and the log exclusion process will begin.

I hope this proves useful for you, however I wonder if the application is working correctly since you are getting that warning. Any clarification on that would be appreciated.

于 2018-04-20T11:19:38.257 回答