Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
qiuqunfeng
waf-console
Commits
1d79c3d3
Commit
1d79c3d3
authored
Mar 07, 2025
by
qiuqunfeng
Browse files
debug
parent
fc8a50a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
internal/store/es.go
internal/store/es.go
+1
-0
No files found.
internal/store/es.go
View file @
1d79c3d3
...
@@ -38,6 +38,7 @@ func CreateEsClientFromEnv() (*es.Client, error) {
...
@@ -38,6 +38,7 @@ func CreateEsClientFromEnv() (*es.Client, error) {
if
esUsername
!=
""
&&
esPassword
!=
""
{
if
esUsername
!=
""
&&
esPassword
!=
""
{
opts
=
append
(
opts
,
es
.
SetBasicAuth
(
esUsername
,
esPassword
))
opts
=
append
(
opts
,
es
.
SetBasicAuth
(
esUsername
,
esPassword
))
}
}
opts
=
append
(
opts
,
es
.
SetTraceLog
(
&
log
.
Logger
))
sniff
:=
os
.
Getenv
(
"ELASTIC_SNIFF"
)
sniff
:=
os
.
Getenv
(
"ELASTIC_SNIFF"
)
if
sniff
==
""
{
if
sniff
==
""
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment