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
55896a86
Commit
55896a86
authored
Nov 15, 2014
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logs(2/main) place log statements approppriately
License: MIT Signed-off-by:
Brian Tiger Chow
<
brian@perfmode.com
>
parent
4b160781
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
cmd/ipfs2/main.go
cmd/ipfs2/main.go
+3
-1
No files found.
cmd/ipfs2/main.go
View file @
55896a86
...
...
@@ -353,13 +353,15 @@ func commandShouldRunOnDaemon(details cmdDetails, req cmds.Request, root *cmds.C
return
false
,
nil
}
log
.
Info
(
"looking for running daemon..."
)
// at this point need to know whether daemon is running. we defer
// to this point so that some commands dont open files unnecessarily.
daemonLocked
:=
daemon
.
Locked
(
req
.
Context
()
.
ConfigRoot
)
log
.
Info
(
"Daemon is running."
)
if
daemonLocked
{
log
.
Info
(
"a daemon is running..."
)
if
details
.
cannotRunOnDaemon
{
e
:=
"ipfs daemon is running. please stop it to run this command"
return
false
,
cmds
.
ClientError
(
e
)
...
...
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