Created
July 15, 2014 08:31
-
-
Save chobie/ffc4c045d8d18d85d08f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: src/Fluent/Logger/FluentLogger.php | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
--- src/Fluent/Logger/FluentLogger.php (date 1365234935000) | |
+++ src/Fluent/Logger/FluentLogger.php (date 1405348506000) | |
@@ -72,6 +72,7 @@ | |
"usleep_wait" => self::USLEEP_WAIT, | |
"persistent" => false, | |
"retry_socket" => true, | |
+ "max_write_retry" => self::MAX_WRITE_RETRY, | |
); | |
protected static $supported_transports = array( | |
@@ -87,6 +88,7 @@ | |
"usleep_wait", | |
"persistent", | |
"retry_socket", | |
+ "max_write_retry", | |
); | |
protected static $instances = array(); | |
@@ -362,7 +364,7 @@ | |
return false; | |
} | |
- if ($retry > self::MAX_WRITE_RETRY) { | |
+ if ($retry > $this->getOption("max_write_retry", self::MAX_WRITE_RETRY)) { | |
throw new \Exception("failed fwrite retry: retry count exceeds limit."); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment