Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
7bf7afb7
Commit
7bf7afb7
authored
Oct 02, 2014
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logging on gen
parent
e91b2b8a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
cmd/ipfs/gen.go
cmd/ipfs/gen.go
+2
-3
cmd/ipfs/ipfs.go
cmd/ipfs/ipfs.go
+4
-0
No files found.
cmd/ipfs/gen.go
View file @
7bf7afb7
...
...
@@ -47,12 +47,11 @@ func makeCommand(cmdDesc command) commanderFunc {
err
=
daemon
.
SendCommand
(
cmd
,
confdir
)
if
err
!=
nil
{
fmt
.
Printf
(
"Executing command locally: %s"
,
err
)
log
.
Info
(
"Executing command locally: %s"
,
err
)
// Do locally
n
,
err
:=
localNode
(
confdir
,
cmdDesc
.
online
)
if
err
!=
nil
{
fmt
.
Println
(
"Local node creation failed."
)
return
err
return
fmt
.
Errorf
(
"Local node creation failed: %v"
,
err
)
}
return
cmdDesc
.
cmdFn
(
n
,
cmd
.
Args
,
cmd
.
Opts
,
os
.
Stdout
)
...
...
cmd/ipfs/ipfs.go
View file @
7bf7afb7
...
...
@@ -9,6 +9,7 @@ import (
flag
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/gonuts/flag"
commander
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/commander"
ma
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multiaddr"
logging
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/op/go-logging"
config
"github.com/jbenet/go-ipfs/config"
core
"github.com/jbenet/go-ipfs/core"
...
...
@@ -61,6 +62,9 @@ Use "ipfs help <command>" for more information about a command.
Flag
:
*
flag
.
NewFlagSet
(
"ipfs"
,
flag
.
ExitOnError
),
}
// log is the command logger
var
log
=
logging
.
MustGetLogger
(
"cmd/ipfs"
)
func
init
()
{
config
,
err
:=
config
.
PathRoot
()
if
err
!=
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