mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-27 00:25:50 +03:00
[PR #548] [MERGED] Removed a small code duplication, and added Logger::toMonologLevel() tests. #1222
Labels
No labels
Bug
Documentation
Feature
Needs Work
Support
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/monolog#1222
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Seldaek/monolog/pull/548
Author: @breda
Created: 4/25/2015
Status: ✅ Merged
Merged: 4/30/2015
Merged by: @Seldaek
Base:
master← Head:master📝 Commits (1)
2cb4a57Removed Logger::toMonologLevel() code duplication and added relevant tests📊 Changes
2 files changed (+17 additions, -4 deletions)
View changed files
📝
src/Monolog/Logger.php(+2 -4)📝
tests/Monolog/LoggerTest.php(+15 -0)📄 Description
This is a rather small change, but keeping things DRY is always a good thing.
I removed the duplicated logic and replaced it with a
Monolog\Logger::toMonologLevel()call.Plus added the tests that cover that method.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.