Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
04896c1a
Unverified
Commit
04896c1a
authored
7 years ago
by
Preetha Appan
Browse files
Options
Download
Email Patches
Plain Diff
Fix logging levels per code review
parent
daa0cc9c
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nomad/node_endpoint.go
+2
-2
nomad/node_endpoint.go
with
2 additions
and
2 deletions
+2
-2
nomad/node_endpoint.go
+
2
-
2
View file @
04896c1a
...
...
@@ -840,11 +840,11 @@ func (n *Node) UpdateAlloc(args *structs.AllocUpdateRequest, reply *structs.Gene
if
existingAlloc
,
_
:=
n
.
srv
.
State
()
.
AllocByID
(
nil
,
alloc
.
ID
);
existingAlloc
!=
nil
{
job
,
err
:=
n
.
srv
.
State
()
.
JobByID
(
nil
,
existingAlloc
.
Namespace
,
existingAlloc
.
JobID
)
if
err
!=
nil
{
n
.
srv
.
logger
.
Printf
(
"[
WARN
] nomad.client: UpdateAlloc unable to find job ID %q :%v"
,
existingAlloc
.
JobID
,
err
)
n
.
srv
.
logger
.
Printf
(
"[
ERR
] nomad.client: UpdateAlloc unable to find job ID %q :%v"
,
existingAlloc
.
JobID
,
err
)
continue
}
if
job
==
nil
{
n
.
srv
.
logger
.
Printf
(
"[
WARN
] nomad.client: UpdateAlloc unable to find job ID %q"
,
existingAlloc
.
JobID
)
n
.
srv
.
logger
.
Printf
(
"[
DEBUG
] nomad.client: UpdateAlloc unable to find job ID %q"
,
existingAlloc
.
JobID
)
continue
}
taskGroup
:=
job
.
LookupTaskGroup
(
existingAlloc
.
TaskGroup
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help