# Logger.info request.headers in production does nothing?

**URL:** <https://www.ruby-forum.com/t/logger-info-request-headers-in-production-does-nothing/148125>\
**Category:** Rails\
**Created:** [September 9, 2008, 4:12pm UTC](https://www.ruby-forum.com/t/logger-info-request-headers-in-production-does-nothing/148125 "2008-09-09T16:12:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![comopasta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/59ef9b/32.png) [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Post date:** [September 9, 2008, 4:12pm UTC](https://www.ruby-forum.com/t/logger-info-request-headers-in-production-does-nothing/148125/1 "2008-09-09T16:12:52Z")

</div>

Hi,

logger.info request.headers is giving me the headers of the request in  
development mode. However I can’t get the same on production mode.

Any hints?

Thanks

---

<div class="post-metadata">

**Author:** ![comopasta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/59ef9b/32.png) [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Post date:** [September 9, 2008, 5:12pm UTC](https://www.ruby-forum.com/t/logger-info-request-headers-in-production-does-nothing/148125/2 "2008-09-09T17:12:26Z")

</div>

there is a line

config.log\_level = :error

or something the like in development.rb

you can change or remove that to get the right log level

or use logger.error instead of logger.info

---

<div class="post-metadata">

**Author:** ![comopasta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/59ef9b/32.png) [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Post date:** [September 9, 2008, 6:33pm UTC](https://www.ruby-forum.com/t/logger-info-request-headers-in-production-does-nothing/148125/3 "2008-09-09T18:33:40Z")

</div>

Thanks Thorsten

> or use logger.error instead of logger.info

I did try that one also with the same result…

Regards

---

<div class="post-metadata">

**Author:** ![comopasta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/59ef9b/32.png) [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Post date:** [September 9, 2008, 10:23pm UTC](https://www.ruby-forum.com/t/logger-info-request-headers-in-production-does-nothing/148125/4 "2008-09-09T22:23:17Z")

</div>

comopasta Gr wrote:

> Hi,
> 
> I need to inspect the request header I’m getting from a client in  
> production mode.
> 
> Any hints anyone?
> 
> Thanks.

I like to use the firebug addon for firefox, it really helps with web  
design and as a bonus you can track requests, responses and see  
everything that travels over the network.

Its a helpful all round tool IMHO

HTH

Matt

---

<div class="post-metadata">

**Author:** ![comopasta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/59ef9b/32.png) [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Post date:** [September 9, 2008, 10:17pm UTC](https://www.ruby-forum.com/t/logger-info-request-headers-in-production-does-nothing/148125/5 "2008-09-09T22:17:03Z")

</div>

Hi,

I need to inspect the request header I’m getting from a client in  
production mode.

Any hints anyone?

Thanks.

---

<div class="post-metadata">

**Author:** ![comopasta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/59ef9b/32.png) [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Post date:** [September 9, 2008, 10:30pm UTC](https://www.ruby-forum.com/t/logger-info-request-headers-in-production-does-nothing/148125/6 "2008-09-09T22:30:22Z")

</div>

Thanks Matt!

Yeah I use firebug. That is great to see the requests I send from the  
browser for example. In my case the request is coming from a mobile  
device and I’d like to see how the request received by the server looks.

Regards
