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
f4ce5583
Unverified
Commit
f4ce5583
authored
Aug 04, 2016
by
Tim St. Clair
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust verbosity levels of go2idl logging
parent
9abdf719
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
9 deletions
+9
-9
main.go
cmd/libs/go2idl/conversion-gen/main.go
+1
-1
main.go
cmd/libs/go2idl/deepcopy-gen/main.go
+1
-1
execute.go
cmd/libs/go2idl/generator/execute.go
+3
-3
import_restrict.go
cmd/libs/go2idl/import-boss/generators/import_restrict.go
+2
-2
main.go
cmd/libs/go2idl/import-boss/main.go
+1
-1
main.go
cmd/libs/go2idl/set-gen/main.go
+1
-1
No files found.
cmd/libs/go2idl/conversion-gen/main.go
View file @
f4ce5583
...
...
@@ -70,5 +70,5 @@ func main() {
);
err
!=
nil
{
glog
.
Fatalf
(
"Error: %v"
,
err
)
}
glog
.
Info
(
"Completed successfully."
)
glog
.
V
(
2
)
.
Info
(
"Completed successfully."
)
}
cmd/libs/go2idl/deepcopy-gen/main.go
View file @
f4ce5583
...
...
@@ -75,5 +75,5 @@ func main() {
);
err
!=
nil
{
glog
.
Fatalf
(
"Error: %v"
,
err
)
}
glog
.
Info
(
"Completed successfully."
)
glog
.
V
(
2
)
.
Info
(
"Completed successfully."
)
}
cmd/libs/go2idl/generator/execute.go
View file @
f4ce5583
...
...
@@ -64,7 +64,7 @@ type DefaultFileType struct {
}
func
(
ft
DefaultFileType
)
AssembleFile
(
f
*
File
,
pathname
string
)
error
{
glog
.
V
(
0
)
.
Infof
(
"Assembling file %q"
,
pathname
)
glog
.
V
(
2
)
.
Infof
(
"Assembling file %q"
,
pathname
)
destFile
,
err
:=
os
.
Create
(
pathname
)
if
err
!=
nil
{
return
err
...
...
@@ -91,7 +91,7 @@ func (ft DefaultFileType) AssembleFile(f *File, pathname string) error {
}
func
(
ft
DefaultFileType
)
VerifyFile
(
f
*
File
,
pathname
string
)
error
{
glog
.
V
(
0
)
.
Infof
(
"Verifying file %q"
,
pathname
)
glog
.
V
(
2
)
.
Infof
(
"Verifying file %q"
,
pathname
)
friendlyName
:=
filepath
.
Join
(
f
.
PackageName
,
f
.
Name
)
b
:=
&
bytes
.
Buffer
{}
et
:=
NewErrorTracker
(
b
)
...
...
@@ -211,7 +211,7 @@ func (c *Context) addNameSystems(namers namer.NameSystems) *Context {
// import path already, this will be appended to 'outDir'.
func
(
c
*
Context
)
ExecutePackage
(
outDir
string
,
p
Package
)
error
{
path
:=
filepath
.
Join
(
outDir
,
p
.
Path
())
glog
.
V
(
0
)
.
Infof
(
"Processing package %q, disk location %q"
,
p
.
Name
(),
path
)
glog
.
V
(
2
)
.
Infof
(
"Processing package %q, disk location %q"
,
p
.
Name
(),
path
)
// Filter out any types the *package* doesn't care about.
packageContext
:=
c
.
filteredBy
(
p
.
Filter
)
os
.
MkdirAll
(
path
,
0755
)
...
...
cmd/libs/go2idl/import-boss/generators/import_restrict.go
View file @
f4ce5583
...
...
@@ -214,7 +214,7 @@ func (importRuleFile) VerifyFile(f *generator.File, path string) error {
}
found
:=
false
for
_
,
allowed
:=
range
r
.
AllowedPrefixes
{
glog
.
V
(
0
)
.
Infof
(
"Checking %v against %v
\n
"
,
v
,
allowed
)
glog
.
V
(
4
)
.
Infof
(
"Checking %v against %v
\n
"
,
v
,
allowed
)
if
strings
.
HasPrefix
(
v
,
allowed
)
{
found
=
true
break
...
...
@@ -226,7 +226,7 @@ func (importRuleFile) VerifyFile(f *generator.File, path string) error {
}
}
if
len
(
rules
.
Rules
)
>
0
{
glog
.
V
(
0
)
.
Infof
(
"%v passes rules found in %v
\n
"
,
path
,
actualPath
)
glog
.
V
(
2
)
.
Infof
(
"%v passes rules found in %v
\n
"
,
path
,
actualPath
)
}
return
nil
...
...
cmd/libs/go2idl/import-boss/main.go
View file @
f4ce5583
...
...
@@ -84,5 +84,5 @@ func main() {
glog
.
Errorf
(
"Error: %v"
,
err
)
os
.
Exit
(
1
)
}
glog
.
Info
(
"Completed successfully."
)
glog
.
V
(
2
)
.
Info
(
"Completed successfully."
)
}
cmd/libs/go2idl/set-gen/main.go
View file @
f4ce5583
...
...
@@ -49,5 +49,5 @@ func main() {
glog
.
Errorf
(
"Error: %v"
,
err
)
os
.
Exit
(
1
)
}
glog
.
Info
(
"Completed successfully."
)
glog
.
V
(
2
)
.
Info
(
"Completed successfully."
)
}
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