Merge pull request #47 from Larry0ua/master

Fix BugZilla bug id 281. Looks reasonable, all the isTraceEnabled line up with the trace() calls.