Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
286f0aa9
Commit
286f0aa9
authored
May 08, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More logging, some tweaks to the format
parent
26a998f7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
packer.go
packer.go
+2
-0
packer/plugin/client.go
packer/plugin/client.go
+3
-1
packer/plugin/plugin.go
packer/plugin/plugin.go
+0
-2
No files found.
packer.go
View file @
286f0aa9
...
...
@@ -11,6 +11,8 @@ import (
)
func
main
()
{
log
.
SetFlags
(
log
.
Ldate
|
log
.
Ltime
|
log
.
Llongfile
)
commands
:=
map
[
string
]
string
{
"build"
:
"packer-build"
,
}
...
...
packer/plugin/client.go
View file @
286f0aa9
...
...
@@ -38,6 +38,7 @@ func CleanupClients() {
}()
}
log
.
Println
(
"waiting for all plugin processes to complete..."
)
wg
.
Wait
()
}
...
...
@@ -91,6 +92,7 @@ func (c *client) Start() (address string, err error) {
// Start goroutine to wait for process to exit
go
func
()
{
c
.
cmd
.
Wait
()
log
.
Println
(
"plugin process exited"
)
c
.
exited
=
true
}()
...
...
@@ -159,7 +161,7 @@ func (c *client) logStderr(r io.Reader) {
}
var
err
error
for
err
==
nil
{
for
err
!=
io
.
EOF
{
var
line
string
line
,
err
=
buf
.
ReadString
(
'\n'
)
if
line
!=
""
{
...
...
packer/plugin/plugin.go
View file @
286f0aa9
...
...
@@ -77,6 +77,4 @@ func ServeCommand(command packer.Command) {
if
err
:=
serve
(
server
);
err
!=
nil
{
log
.
Panic
(
err
)
}
log
.
Println
(
"Command successfully served. Exiting."
)
}
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