Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-logs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
wp-logs
Commits
a98f738c
Commit
a98f738c
authored
1 year ago
by
Grzegorz Rola
Browse files
Options
Downloads
Plain Diff
Merge branch 'bugfix/wc-logger' into 'master'
bugfix(wc logger): initialisation See merge request
!28
parents
7b7c5c22
27125ff6
No related branches found
No related tags found
1 merge request
!28
bugfix(wc logger): initialisation
Pipeline
#344538
passed with warnings
1 year ago
Stage: prepare-vendor
Stage: tools
Stage: tests
Stage: deploy
Changes
2
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+5
-1
5 additions, 1 deletion
CHANGELOG.md
src/SimpleLoggerFactory.php
+1
-1
1 addition, 1 deletion
src/SimpleLoggerFactory.php
with
6 additions
and
2 deletions
CHANGELOG.md
+
5
−
1
View file @
a98f738c
## [1.12.0] - 2023-07-10
## [1.12.1] - 2024-03-26
### Fixed
-
WC logger initialisation
## [1.12.0] - 2024-03-19
### Added
-
sensitive data replacer
...
...
This diff is collapsed.
Click to expand it.
src/SimpleLoggerFactory.php
+
1
−
1
View file @
a98f738c
...
...
@@ -33,7 +33,7 @@ final class SimpleLoggerFactory implements LoggerFactory {
$this
->
logger
=
new
Logger
(
$this
->
channel
);
if
(
$this
->
options
->
use_wc_log
)
{
if
(
\function_exists
(
'wc_get_logger'
)
)
{
if
(
\function_exists
(
'wc_get_logger'
)
&&
\did_action
(
'woocommerce_init'
)
)
{
$this
->
create_wc_handler
();
}
else
{
\add_action
(
'woocommerce_init'
,
[
$this
,
'create_wc_handler'
]
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment