Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
d63117ac
Commit
d63117ac
authored
Aug 27, 2023
by
AUTOMATIC1111
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hide --gradio-auth and --api-auth values from /internal/sysinfo report
parent
66d76307
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
modules/sysinfo.py
modules/sysinfo.py
+17
-1
No files found.
modules/sysinfo.py
View file @
d63117ac
...
...
@@ -82,7 +82,7 @@ def get_dict():
"Data path"
:
paths_internal
.
data_path
,
"Extensions dir"
:
paths_internal
.
extensions_dir
,
"Checksum"
:
checksum_token
,
"Commandline"
:
sys
.
argv
,
"Commandline"
:
get_argv
()
,
"Torch env info"
:
get_torch_sysinfo
(),
"Exceptions"
:
get_exceptions
(),
"CPU"
:
{
...
...
@@ -123,6 +123,22 @@ def get_environment():
return
{
k
:
os
.
environ
[
k
]
for
k
in
sorted
(
os
.
environ
)
if
k
in
environment_whitelist
}
def
get_argv
():
res
=
[]
for
v
in
sys
.
argv
:
if
shared
.
cmd_opts
.
gradio_auth
and
shared
.
cmd_opts
.
gradio_auth
==
v
:
res
.
append
(
"<hidden>"
)
continue
if
shared
.
cmd_opts
.
api_auth
and
shared
.
cmd_opts
.
api_auth
==
v
:
res
.
append
(
"<hidden>"
)
continue
res
.
append
(
v
)
return
res
re_newline
=
re
.
compile
(
r"\r*\n"
)
...
...
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