basho / cuttlefish

never lose your childlike sense of wonder baby cuttlefish, promise me?
Apache License 2.0
205 stars 124 forks source link

Increased log level on messages that should be errors #129

Closed joedevivo closed 10 years ago

joedevivo commented 10 years ago

Fixes #128

➜  riak git:(develop) ✗ sudo chmod -R 644 data 
➜  riak git:(develop) ✗ ./bin/riak config generate         
15:52:03.672 [error] Unable to create directory ./data/generated.configs - eacces.  Please check permissions.
seancribbs commented 10 years ago
seancribbs commented 10 years ago

This works as intended, passes automated and manual tests, etc, but I'd really love to see the output format and information be better before this merges.

joedevivo commented 10 years ago
➜  Desktop  chmod 644 cantwrite
➜  cuttlefish git:(jd-file-write-error-handling) ✗ ./cuttlefish -e ~/dev/basho/riak/rel/riak/etc -s ~/dev/basho/riak/rel/riak/lib -d ~/Desktop/cantwrite -c ~/dev/basho/riak/rel/riak/etc/riak.conf 
08:52:49.454 [error] Error writing /Users/joe/Desktop/cantwrite/app.2014.02.27.08.52.49.config: permission denied
08:52:49.454 [error] Error writing /Users/joe/Desktop/cantwrite/vm.2014.02.27.08.52.49.args: permission denied
➜  cuttlefish git:(jd-file-write-error-handling) ✗ ./cuttlefish -e ~/dev/basho/riak/rel/riak/etc -s ~/dev/basho/riak/rel/riak/lib -d ~/Desktop/cantwrite/cantsub -c ~/dev/basho/riak/rel/riak/etc/riak.conf
08:55:04.136 [error] Unable to create directory /Users/joe/Desktop/cantwrite/cantsub - "permission denied".  Please check permissions.
seancribbs commented 10 years ago

r+ :+1: 5aeb970