Skip to content

Commit ec5d3d0

Browse files
committed
silence logs
1 parent 8b6c579 commit ec5d3d0

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

lib/elixir_sense/core/compiler.ex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ defmodule ElixirSense.Core.Compiler do
116116

117117
do_expand(ast, state, env)
118118
catch
119-
kind, payload ->
120-
Logger.warning(
121-
"Unable to expand ast node #{inspect(ast)}: #{Exception.format(kind, payload, __STACKTRACE__)}"
122-
)
119+
_kind, _payload ->
120+
# Logger.warning(
121+
# "Unable to expand ast node #{inspect(ast)}: #{Exception.format(kind, payload, __STACKTRACE__)}"
122+
# )
123123

124124
{ast, state, env}
125125
end
@@ -2149,8 +2149,8 @@ defmodule ElixirSense.Core.Compiler do
21492149
callback.(meta, args)
21502150
catch
21512151
# If expanding the macro fails, we just give up.
2152-
kind, payload ->
2153-
Logger.warning(Exception.format(kind, payload, __STACKTRACE__))
2152+
_kind, _payload ->
2153+
# Logger.warning(Exception.format(kind, payload, __STACKTRACE__))
21542154
# look for cursor in args
21552155
{_ast, state, _env} = expand(args, state, env)
21562156

lib/elixir_sense/core/compiler/state.ex

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,28 +1122,28 @@ defmodule ElixirSense.Core.Compiler.State do
11221122
to_string(list)
11231123
end
11241124

1125-
other ->
1126-
Logger.warning("""
1127-
Unable to format docstring expression:
1125+
_other ->
1126+
# Logger.warning("""
1127+
# Unable to format docstring expression:
11281128

1129-
#{inspect(quoted, pretty: true)}
1129+
# #{inspect(quoted, pretty: true)}
11301130

1131-
Eval resulted in:
1131+
# Eval resulted in:
11321132

1133-
#{inspect(other)}
1134-
""")
1133+
# #{inspect(other)}
1134+
# """)
11351135

11361136
""
11371137
end
11381138
rescue
1139-
e ->
1140-
Logger.warning("""
1141-
Unable to format docstring expression:
1139+
_e ->
1140+
# Logger.warning("""
1141+
# Unable to format docstring expression:
11421142

1143-
#{inspect(quoted, pretty: true)}
1143+
# #{inspect(quoted, pretty: true)}
11441144

1145-
#{Exception.format(:error, e, __STACKTRACE__)}
1146-
""")
1145+
# #{Exception.format(:error, e, __STACKTRACE__)}
1146+
# """)
11471147

11481148
""
11491149
end

0 commit comments

Comments
 (0)