Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exits without error when no command line options specified #144

Open
jasoncox opened this issue Mar 25, 2015 · 3 comments
Open

Exits without error when no command line options specified #144

jasoncox opened this issue Mar 25, 2015 · 3 comments

Comments

@jasoncox
Copy link

When I start hutch with or without command line options it exits without error.

It prints the following 2 lines and then exits.

2015-03-25T10:20:27Z 64978 INFO -- hutch booted with pid 64978
2015-03-25T10:20:27Z 64978 INFO -- found rails project (.), booting app

What could be causing this? Have I set something up wrong?

@jasoncox
Copy link
Author

Dug a little deeper and debugged.... because I had configured my rails app:

Hutch::Logging.logger = Rails.logger

And since I was running hutch from cli hutch.logger was not writing to stdout.

I disabled this and can see there are errors connecting to the rabbitmq http api (which is not a problem with hutch).

I wonder if the cli should always print errors to stdout?

@jdrago999
Copy link

Can we have multiple loggers? Something like:

Hutch::Logging.logger = [ Rails.logger, STDERR ]

@michaelklishin
Copy link
Member

I'm not a fan of the idea of multiple loggers. CLI printint to stdout/stderr makes a lot more sense to me.

@michaelklishin michaelklishin changed the title Exits without error Exits without error when no command line options specified Jul 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants