Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
ee8507a5
Commit
ee8507a5
authored
Jul 19, 2016
by
Davanum Srinivas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Infof/Warningf when appropriate
When we use a format string, we should use Infof/Warningf instead of Info/Warning
parent
d9fbb9f6
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
10 additions
and
10 deletions
+10
-10
framework.go
...rib/mesos/pkg/scheduler/components/framework/framework.go
+1
-1
podreconciler.go
...s/pkg/scheduler/components/podreconciler/podreconciler.go
+1
-1
aws.go
pkg/cloudprovider/providers/aws/aws.go
+1
-1
vsphere.go
pkg/cloudprovider/providers/vsphere/vsphere.go
+2
-2
dns.go
pkg/dns/dns.go
+1
-1
factory.go
plugin/pkg/scheduler/factory/factory.go
+1
-1
persistent_volumes_test.go
.../integration/persistentvolumes/persistent_volumes_test.go
+1
-1
thin_ls_client.go
...github.com/google/cadvisor/devicemapper/thin_ls_client.go
+1
-1
executor.go
vendor/github.com/mesos/mesos-go/executor/executor.go
+1
-1
No files found.
contrib/mesos/pkg/scheduler/components/framework/framework.go
View file @
ee8507a5
...
...
@@ -548,7 +548,7 @@ func (k *framework) reconcileTerminalTask(driver bindings.SchedulerDriver, taskS
//is unrecognized by the master at this point, so KillTask is not guaranteed
//to do anything. The underlying driver transport may be able to send a
//FrameworkMessage directly to the slave to terminate the task.
log
.
V
(
2
)
.
Info
(
"forwarding TASK_LOST message to executor %v on slave %v"
,
taskStatus
.
ExecutorId
,
taskStatus
.
SlaveId
)
log
.
V
(
2
)
.
Info
f
(
"forwarding TASK_LOST message to executor %v on slave %v"
,
taskStatus
.
ExecutorId
,
taskStatus
.
SlaveId
)
data
:=
fmt
.
Sprintf
(
"%s:%s"
,
messages
.
TaskLost
,
task
.
ID
)
//TODO(jdef) use a real message type
if
_
,
err
:=
driver
.
SendFrameworkMessage
(
taskStatus
.
ExecutorId
,
taskStatus
.
SlaveId
,
data
);
err
!=
nil
{
log
.
Error
(
err
.
Error
())
...
...
contrib/mesos/pkg/scheduler/components/podreconciler/podreconciler.go
View file @
ee8507a5
...
...
@@ -76,7 +76,7 @@ func (s *podReconciler) Reconcile(t *podtask.T) {
}
else
{
//TODO(jdef) other errors should probably trigger a retry (w/ backoff).
//For now, drop the pod on the floor
log
.
Warning
(
"aborting reconciliation for pod %v: %v"
,
t
.
Pod
.
Name
,
err
)
log
.
Warning
f
(
"aborting reconciliation for pod %v: %v"
,
t
.
Pod
.
Name
,
err
)
}
return
}
...
...
pkg/cloudprovider/providers/aws/aws.go
View file @
ee8507a5
...
...
@@ -1413,7 +1413,7 @@ func (c *Cloud) DetachDisk(diskName string, instanceName string) (string, error)
}
if
!
alreadyAttached
{
glog
.
Warning
(
"DetachDisk called on non-attached disk: %s"
,
diskName
)
glog
.
Warning
f
(
"DetachDisk called on non-attached disk: %s"
,
diskName
)
// TODO: Continue? Tolerate non-attached error in DetachVolume?
}
...
...
pkg/cloudprovider/providers/vsphere/vsphere.go
View file @
ee8507a5
...
...
@@ -434,9 +434,9 @@ func (i *Instances) InstanceID(name string) (string, error) {
}
if
mvm
.
Summary
.
Config
.
Template
==
false
{
glog
.
Warning
(
"VM %s, is not in %s state"
,
name
,
ActivePowerState
)
glog
.
Warning
f
(
"VM %s, is not in %s state"
,
name
,
ActivePowerState
)
}
else
{
glog
.
Warning
(
"VM %s, is a template"
,
name
)
glog
.
Warning
f
(
"VM %s, is a template"
,
name
)
}
return
""
,
cloudprovider
.
InstanceNotFound
...
...
pkg/dns/dns.go
View file @
ee8507a5
...
...
@@ -247,7 +247,7 @@ func (kd *KubeDNS) newService(obj interface{}) {
return
}
if
len
(
service
.
Spec
.
Ports
)
==
0
{
glog
.
Warning
(
"Unexpected service with no ports, this should not have happend: %v"
,
service
)
glog
.
Warning
f
(
"Unexpected service with no ports, this should not have happend: %v"
,
service
)
}
kd
.
newPortalService
(
service
)
}
...
...
plugin/pkg/scheduler/factory/factory.go
View file @
ee8507a5
...
...
@@ -539,7 +539,7 @@ func (factory *ConfigFactory) makeDefaultErrorFunc(backoff *podBackoff, podQueue
break
}
if
errors
.
IsNotFound
(
err
)
{
glog
.
Warning
(
"A pod %v no longer exists"
,
podID
)
glog
.
Warning
f
(
"A pod %v no longer exists"
,
podID
)
return
}
glog
.
Errorf
(
"Error getting pod %v for retry: %v; retrying..."
,
podID
,
err
)
...
...
test/integration/persistentvolumes/persistent_volumes_test.go
View file @
ee8507a5
...
...
@@ -246,7 +246,7 @@ func TestPersistentVolumeBindRace(t *testing.T) {
newPvc
.
ObjectMeta
=
api
.
ObjectMeta
{
Name
:
fmt
.
Sprintf
(
"fake-pvc-race-%d"
,
counter
)}
claim
,
err
:=
testClient
.
PersistentVolumeClaims
(
ns
.
Name
)
.
Create
(
newPvc
)
if
err
!=
nil
{
t
.
Fatal
(
"Error creating newPvc: %v"
,
err
)
t
.
Fatal
f
(
"Error creating newPvc: %v"
,
err
)
}
claims
=
append
(
claims
,
claim
)
}
...
...
vendor/github.com/google/cadvisor/devicemapper/thin_ls_client.go
View file @
ee8507a5
...
...
@@ -80,7 +80,7 @@ func parseThinLsOutput(output []byte) map[string]uint64 {
deviceID
:=
fields
[
0
]
usage
,
err
:=
strconv
.
ParseUint
(
fields
[
1
],
10
,
64
)
if
err
!=
nil
{
glog
.
Warning
(
"unexpected error parsing thin_ls output: %v"
,
err
)
glog
.
Warning
f
(
"unexpected error parsing thin_ls output: %v"
,
err
)
continue
}
...
...
vendor/github.com/mesos/mesos-go/executor/executor.go
View file @
ee8507a5
...
...
@@ -292,7 +292,7 @@ func (driver *MesosExecutorDriver) recoveryTimedOut(connection string) {
}
// ensure that connection ID's match otherwise we've been re-registered
if
connection
==
driver
.
connection
.
String
()
{
log
.
Info
(
"recovery timeout of %v exceeded; shutting down"
,
driver
.
recoveryTimeout
)
log
.
Info
f
(
"recovery timeout of %v exceeded; shutting down"
,
driver
.
recoveryTimeout
)
driver
.
shutdown
(
driver
.
context
(),
nil
,
nil
)
}
}
...
...
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