Skip to content

Instantly share code, notes, and snippets.

@chobie
Created July 15, 2014 08:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chobie/ffc4c045d8d18d85d08f to your computer and use it in GitHub Desktop.
Save chobie/ffc4c045d8d18d85d08f to your computer and use it in GitHub Desktop.
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