-
Notifications
You must be signed in to change notification settings - Fork 750
Refresh Project #329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Refresh Project #329
Changes from 3 commits
dd7c878
4c188f8
eb61fdc
8bfaf74
070f891
f28c078
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
vendor/ | ||
*.swp | ||
phpunit.xml | ||
.idea |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
{ | ||
"name": "chrisboulton/php-resque", | ||
"name": "spiritdead/php-resque", | ||
"type": "library", | ||
"description": "Redis backed library for creating background jobs and processing them later. Based on resque for Ruby.", | ||
"keywords": ["job", "background", "redis", "resque"], | ||
"homepage": "http://www.github.com/chrisboulton/php-resque/", | ||
"homepage": "http://www.github.com/spiritdead/php-resque/", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Chris Boulton", | ||
"email": "[email protected]" | ||
}, | ||
{ | ||
"name": "Carlos Rodriguez", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"repositories": [ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,11 @@ class Resque_Log extends Psr\Log\AbstractLogger | |
{ | ||
public $verbose; | ||
|
||
public function __construct($verbose = false) { | ||
public $debug; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looking at how this is applied, I think this isn't the correct name for this property. Also, it would probably be better to adjust the existing property I agree that being able to filter log entries would be immensely helpful for daily use. What I propose here, then, is to expand the valid values of the One thing to note, however, is that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @danhunsaker i can understand that, was a temporary fix in my personal fork, maybe if is possible we can discuss for make a correct refresh of the project with namespace and more stuff |
||
|
||
public function __construct($verbose = false, $debug = false) { | ||
$this->verbose = $verbose; | ||
$this->debug = $debug; | ||
} | ||
|
||
/** | ||
|
@@ -32,12 +35,14 @@ public function log($level, $message, array $context = array()) | |
return; | ||
} | ||
|
||
if (!($level === Psr\Log\LogLevel::INFO || $level === Psr\Log\LogLevel::DEBUG)) { | ||
fwrite( | ||
STDOUT, | ||
'[' . $level . '] ' . $this->interpolate($message, $context) . PHP_EOL | ||
); | ||
} | ||
if($this->debug) { | ||
if (!($level === Psr\Log\LogLevel::INFO || $level === Psr\Log\LogLevel::DEBUG)) { | ||
fwrite( | ||
STDOUT, | ||
'[' . $level . '] ' . $this->interpolate($message, $context) . PHP_EOL | ||
); | ||
} | ||
} | ||
} | ||
|
||
/** | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change cannot be merged. Always be sure to use a dedicated branch for PRs, and not to commit any changes to a PR branch that you don't intend to submit in the PR itself, as GitHub PRs are per branch, not per change set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@danhunsaker sorry, was for upload in the packagist for my projects for use the composer to my github is the only way for apply my fixs, this project is outdated
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
im creating a module for Yii2 framework, and i need make updates in this project and in the php-resque-scheduler