mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
Simplify some debug logging statements.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20776 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
89dd47ec16
commit
d5f073ab12
5 changed files with 49 additions and 74 deletions
|
@ -254,7 +254,8 @@ NSLogv (NSString* format, va_list args)
|
|||
{
|
||||
if (GSUserDefaultsFlag(GSLogThread) == YES)
|
||||
{
|
||||
prefix = [NSString stringWithFormat: @"[%08x] ", GSCurrentThread()];
|
||||
prefix = [NSString stringWithFormat: @"[thread:%x] ",
|
||||
GSCurrentThread()];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -267,7 +268,7 @@ NSLogv (NSString* format, va_list args)
|
|||
if (GSUserDefaultsFlag(GSLogThread) == YES)
|
||||
{
|
||||
prefix = [NSString
|
||||
stringWithFormat: @"%@ %@[%d,%08x] ",
|
||||
stringWithFormat: @"%@ %@[%d,%x] ",
|
||||
[[NSCalendarDate calendarDate]
|
||||
descriptionWithCalendarFormat: @"%Y-%m-%d %H:%M:%S.%F"],
|
||||
[[NSProcessInfo processInfo] processName],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue