From b537da569f520c93fccbef2c4f327d6001a487a3 Mon Sep 17 00:00:00 2001 From: Wilson Date: Fri, 9 Mar 2018 21:57:56 -0800 Subject: [PATCH] Fix run-on sentence --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f77819b..1d8eb0d 100644 --- a/README.md +++ b/README.md @@ -495,7 +495,7 @@ logrus.RegisterExitHandler(handler) #### Thread safety -By default Logger is protected by mutex for concurrent writes, this mutex is invoked when calling hooks and writing logs. +By default, Logger is protected by a mutex for concurrent writes. The mutex is held when calling hooks and writing logs. If you are sure such locking is not needed, you can call logger.SetNoLock() to disable the locking. Situation when locking is not needed includes: