Fix a race condition in TestLoggingWithHooksRace
Fix a race condition in TestLoggingWithHooksRace

penhauer-xiao/logrus,freeformz/logrus,yxd-hde/logrus,sirupsen/logrus,Sirupsen/logrus,penhauer-xiao/logrus,sirupsen/logrus