edsu / anon

tweet about anonymous Wikipedia edits from particular IP address ranges
Creative Commons Zero v1.0 Universal
976 stars 152 forks source link

Logs ? #36

Open DannyCork opened 10 years ago

DannyCork commented 10 years ago

How can I verify anon is working ?

Imagine anon is running in a country where anonymous edits are few and far between. Anon is running but how do I know it's actually working? I don't see log files, perhaps we should add a log file?

I can see a node process that is spawned. What happens when this process dies, no logs right ?

Maybe there are logs that I'm not seeing ?

Thanks.

ineffyble commented 10 years ago

From the README:

If you would like to see all the change activity (URLs for each change) to test that it is actually listening use the --verbose flag:

./anon.coffee --verbose

edsu commented 10 years ago

Better logging would be a good thing, I'll leave this open till we have it.

DannyCork commented 10 years ago

I start as follows ./anon.coffee &

however the process dies after x hours. I have no logs to read , hence no idea why it died. Logs would be great. Thanks.

edsu commented 10 years ago

How does it die? Are you running on a laptop that goes to sleep? Did you try the --verbose flag?

remagio commented 10 years ago

Temp solution for linux: the most used supervisor for logging&keeping up nodesjs apps for you is "supervisord". It's autonomic. It manage start, stop and autonomous restart if nodejs app crash.

DannyCork commented 10 years ago

I am now attempting to get some logs to investigate by doing a nohip ./anon.coffee > log &

Remagio thanks must look into this.

remagio commented 10 years ago

@DannyCork once supervisors is deployed you can: