<< Back to previous view

[TLOG-20] log/info removes quotes from strings making debugging harder than it needs to be. Created: 19/Jul/17  Updated: 23/Jul/17

Status: Open
Project: tools.logging
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Major
Reporter: Lonnie Souder Assignee: Alexander Taggart
Resolution: Unresolved Votes: 0
Labels: None

Attachments: Text File TLOG20.patch    

 Description   

log/info removes quotes from strings making debugging harder than it needs to be. I found that {:test1 "", :test2 "2"} is logged as {:test1 , :test2 2}. I see the same issue when I print a map using println. prn prints the map with the quotes which is better for debugging.

I will make a patch and add it later.



 Comments   
Comment by Lonnie Souder [ 23/Jul/17 7:31 AM ]

Retested with 0.4.0

clojure.tools.logging
user=> (log/info ["test" "1" "" "3"])
Jul 23, 2017 8:22:56 AM user invoke
INFO: [test 1  3]
user=> (log/info ":one" :one 1 "1")
Jul 23, 2017 8:35:30 AM user invoke
INFO: :one :one 1 1

Output should be:

INFO: ["test" "1" "" "3"]

and

INFO: [":one" :one 1 "1"]
Comment by Lonnie Souder [ 23/Jul/17 8:04 AM ]

Replace print-str with prn-str so user can see what will be evaluated. This is useful in debugging programs but I can see how this may mess up human readale info output out there in the wild.





Generated at Fri Jul 28 03:39:58 CDT 2017 using JIRA 4.4#649-r158309.