Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

How to make neo-cli more verbose #402

Closed
ksemaev opened this issue Jun 25, 2019 · 5 comments
Closed

How to make neo-cli more verbose #402

ksemaev opened this issue Jun 25, 2019 · 5 comments

Comments

@ksemaev
Copy link

ksemaev commented Jun 25, 2019

Hi! Please advice - is there a way to get some logs from neo-cli? Right now it just starts and there's no information on what's going on there. Maybe there's some cli option that I couldn't find?

@erikzhang erikzhang added the discussion Issue state: Proposed, to be discussed by the community. label Jun 26, 2019
@ksemaev
Copy link
Author

ksemaev commented Jul 14, 2019

@erikzhang it is very needed, as sometimes neo-cli just hangs, and there's no info in logs to check what happened.

@lock9
Copy link
Contributor

lock9 commented Jul 15, 2019

Hi @ksemaev did you try the ApplicationLogs plugin? It is not "the best" logging tool, but it does help.

@ksemaev
Copy link
Author

ksemaev commented Jul 16, 2019

@lock9 cam you please explain how ApplicationLogs plugin works? Should I pass --log or --logs? Where would the logs be outputed to?

@lock9 lock9 removed the discussion Issue state: Proposed, to be discussed by the community. label Jul 16, 2019
@lock9
Copy link
Contributor

lock9 commented Jul 16, 2019

Hello @ksemaev , I believe it is '--log'. It is output is in ApplicationLogs folder, inside neo-cli executable folder.
There is more information here:
https://github.com/neo-project/neo-plugins

@ksemaev once you try it, can you give us some feedback to know if this solved your problem?

@ksemaev
Copy link
Author

ksemaev commented Jul 18, 2019

@lock9 when I installed logs plugin with:

wget -q https://github.com/neo-project/neo-plugins/releases/download/$VERSION/ApplicationLogs.zip && \
unzip -o ApplicationLogs.zip -d /home/neo

And tried to start neo-cli with neo-cli --rpc --log I get:

neo> [ERROR][07/18/2019 05:59:34][Thread 0010][akka://NeoSystem/system/IO-TCP/$a] Monitored actor [[akka://NeoSystem/user/$b#2050724388]] terminated
Cause: Akka.Actor.DeathPactException: Monitored actor [[akka://NeoSystem/user/$b#2050724388]] terminated
at Akka.Actor.ActorBase.Unhandled(Object message)
at Akka.Actor.ActorBase.AroundReceive(Receive receive, Object message)
at Akka.Actor.ActorCell.ReceiveMessage(Object message)
at Akka.Actor.ActorCell.AutoReceiveMessage(Envelope envelope)
at Akka.Actor.ActorCell.Invoke(Envelope envelope)

Still there's not much help for me from logs in filesystem, I need them to be passed to stdout.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants