My apologies in advance if this question has already been answered. I try to find this on Google and StackOverflow, but since there are punctuation marks in my search query, search engines tend to change it and give me meaningless results.
In my rails application (rails 3.2.11, ruby 1.9.3) my logs often look like this:
Started GET "/apply/contact" for 127.0.0.1 at 2013-01-29 17:35:21 -0600 Processing by JobApplicationsController#show as HTML Parameters: {"id"=>"contact"} [1m[36mJobApplication Load (0.5ms)[0m [1mSELECT "job_applications".* FROM "job_applications" WHERE "job_applications"."id" = 9 LIMIT 1[0m [1m[35mPerson Load (0.4ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = 42 LIMIT 1 Rendered job_applications/contact.html.haml within layouts/bare (9.6ms) Rendered shared/_messages.html.haml (0.1ms) Completed 200 OK in 88ms (Views: 24.8ms | ActiveRecord: 0.9ms | Solr: 0.0ms)
What interests me is related to the tokens [1m[36m and [1m[35m , which appear in front of some lines, as well as [0m and [1m , which sometimes appear in a line.
The only numbers that have ever been displayed are 0, 1, 32, 35, and 36. These tokens always precede the non-printable escape character in the log file.
What do these numbers mean? Why do they appear in my magazines? And is there a way to get rid of them? They (and their rescue friends) are extremely annoying when they try to read the magazines and diagnose the problem.
source share