File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -26,14 +26,13 @@ defmodule Mix.Tasks.App.Start do
26
26
Mix.Task . run "compile" , [ "--no-readd" | args ]
27
27
end
28
28
29
- # Stop the Logger after we have used it for compilation.
30
- # It is up to the application to decide if it should be
31
- # restarted or not.
32
- # Mix should not depend directly on Logger so check that
33
- # it's loaded.
34
- if Code . ensure_loaded? ( Logger ) , do: Logger.App . stop ( )
35
-
36
29
unless "--no-start" in args do
30
+ # Stop the Logger when starting the application as it is
31
+ # up to the application to decide if it should be restarted
32
+ # or not.
33
+ #
34
+ # Mix should not depend directly on Logger so check that it's loaded.
35
+ if Code . ensure_loaded? ( Logger ) , do: Logger.App . stop ( )
37
36
start ( Mix.Project . config [ :app ] )
38
37
end
39
38
You can’t perform that action at this time.
0 commit comments