Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Testing 编译时清除匹配不';测试过程中不工作_Testing_Logging_Elixir_Elixir Mix - Fatal编程技术网

Testing 编译时清除匹配不';测试过程中不工作

Testing 编译时清除匹配不';测试过程中不工作,testing,logging,elixir,elixir-mix,Testing,Logging,Elixir,Elixir Mix,下面是config.exs config :logger, compile_time_purge_matching: [ # [application: :foo], [module: SomeModule, level_lower_than: :error] ] 上述代码在从shell运行时有效,但在执行混合测试时无效 config.exs已被清晰解析,我找不到任何地方覆盖了配置。您是否在test.exs中有记录器配置?不,没有text.exs。如前所述,其他选项起作

下面是config.exs

config :logger,
  compile_time_purge_matching: [
    # [application: :foo],
    [module: SomeModule, level_lower_than: :error]
  ]
上述代码在从shell运行时有效,但在执行混合测试时无效


config.exs
已被清晰解析,我找不到任何地方覆盖了配置。

您是否在
test.exs
中有
记录器配置?不,没有text.exs。如前所述,其他选项起作用,因此使用该文件。是否在
测试.exs中有
:logger
配置?不,没有text.exs。如前所述,其他选项起作用,因此使用该文件。