Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
0bd0f4a2
Commit
0bd0f4a2
authored
Mar 09, 2024
by
Jeffrey Morgan
Browse files
tidy cleanup logs
parent
1ffb1e28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
gpu/assets.go
gpu/assets.go
+2
-2
No files found.
gpu/assets.go
View file @
0bd0f4a2
...
...
@@ -32,10 +32,10 @@ func Cleanup() {
lock
.
Lock
()
defer
lock
.
Unlock
()
if
payloadsDir
!=
""
{
slog
.
Debug
(
"cleaning up
payloads dir "
+
payloadsDir
)
slog
.
Debug
(
"cleaning up
"
,
"dir"
,
payloadsDir
)
err
:=
os
.
RemoveAll
(
payloadsDir
)
if
err
!=
nil
{
slog
.
Warn
(
fmt
.
Sprintf
(
"failed to cleanup
tmp dir: %s
"
,
err
)
)
slog
.
Warn
(
"failed to clean
up
"
,
"dir"
,
payloadsDir
,
"err
"
,
err
)
}
}
}
...
...
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