Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
aic_duty_strategy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yinxiaoling
aic_duty_strategy
Commits
d366f7d8
Commit
d366f7d8
authored
May 20, 2020
by
yinxiaoling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉日志操作
parent
c1d247bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
AppServiceProvider.php
app/Providers/AppServiceProvider.php
+4
-4
No files found.
app/Providers/AppServiceProvider.php
View file @
d366f7d8
...
...
@@ -3,8 +3,8 @@
namespace
App\Providers
;
use
Illuminate\Support\ServiceProvider
;
use
Illuminate\Support\Facades\DB
;
use
Illuminate\Support\Facades\Log
;
//
use Illuminate\Support\Facades\DB;
//
use Illuminate\Support\Facades\Log;
class
AppServiceProvider
extends
ServiceProvider
{
...
...
@@ -25,7 +25,7 @@ class AppServiceProvider extends ServiceProvider
*/
public
function
boot
()
{
DB
::
listen
(
function
(
$query
)
{
/*
DB::listen(function ($query) {
$tmp = str_replace('?', '"'.'%s'.'"', $query->sql);
$qBindings = [];
foreach ($query->bindings as $key => $value) {
...
...
@@ -38,6 +38,6 @@ class AppServiceProvider extends ServiceProvider
$tmp = vsprintf($tmp, $qBindings);
$tmp = str_replace("\\", "", $tmp);
Log::info(' execution time: '.$query->time.'ms; '.$tmp."\n\n\t");
});
});
*/
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment