TraceInformation not working
Hi,
I ran into a problem where TraceInformation didn't work but only
in the case where I use the arg version.
So this works :
string seedText = "Seeding\n\tGroups:{0}\n\tItemLayouts:{1}\n\tJobs:{2}";
Trace.TraceInformation(string.Format(seedText, context.Groups.Count(), context.ItemLayouts.Count(), context.Jobs.Count()));
while this does not:
Trace.TraceInformation(seedText, context.Groups.Count(), context.ItemLayouts.Count(), context.Jobs.Count());
can anyone else reproduce this?
Discussions are closed to public comments.
If you need help with AppHarbor please
start a new discussion.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac
Support Staff 1 Posted by rune on 05 Feb, 2016 02:41 AM
Hi,
I haven't heard from anyone else about this issue, so I suspect the issue might be related to something else. Hwoever, there doesn't seem to be any errors in the code you've shared that should cause a difference in behavior.
Did you experience this issue when you changed your code to use the
Trace#TraceInformationargument overload (in the same location and without making any other changes)? If so, it'd be great if you could point me to the build/commit where the issue cropped up and let me know if it's ok I take a closer look at the code.Best,
Rune