Comments (2)
Here's a preview of the intended change
diff --git a/modules/system/ServiceProvider.php b/modules/system/ServiceProvider.php
index 3dfd76c7a..771971f18 100644
--- a/modules/system/ServiceProvider.php
+++ b/modules/system/ServiceProvider.php
@@ -315,7 +315,8 @@ protected function registerLogging()
{
Event::listen(\Illuminate\Log\Events\MessageLogged::class, function ($event) {
if (EventLog::useLogging()) {
- EventLog::add($event->message, $event->level);
+ $details = $event->context ?? null;
+ EventLog::add($event->message, $event->level, $details);
}
});
}
diff --git a/modules/system/models/EventLog.php b/modules/system/models/EventLog.php
index f72c4f459..2d2efc358 100644
--- a/modules/system/models/EventLog.php
+++ b/modules/system/models/EventLog.php
@@ -40,7 +40,7 @@ class_exists('Model') &&
/**
* Creates a log record
*/
- public static function add(string $message, string $level = 'info', ?string $details = null): self
+ public static function add(string $message, string $level = 'info', ?array $details = null): self
{
$record = new static;
$record->message = $message;
from winter.
@interworks-morr sounds good, submit the PR please!
from winter.
Related Issues (20)
- Translate parameters - urlFromPattern bug HOT 1
- Interoperability issue with 500 response code caused by ApplicationException HOT 3
- Winter\Storm\Database\Relations\BelongsToMany::shouldSelect(): Argument #1 ($columns) must be of type array, int given HOT 2
- Image not upload HOT 6
- imageWidth/imageHeight filters not available on cold cache HOT 1
- HTTP Testing of Plugin not possible HOT 4
- error 500 after update from 1.2.5 to 1.2.6 HOT 6
- Correction for undefined variable $record in modules\system\behaviors\SettingsModel.php line 140 HOT 3
- Migrations Problem
- Hash property is not removed from URL after dismissing a relation modal with tabs HOT 11
- Add "New Item" shortcut menu HOT 1
- Inconsistent behavior between model.relation.afterAttach and model.relation.afterDetach HOT 4
- Failed to configure list setup in preview page HOT 4
- model.relation.beforeAdd and model.relation.afterAdd events not called when using AttachOneOrMany::create()
- Multiple default filters interfere with each other HOT 5
- php fatal erorr HOT 4
- Upgrade wikimedia/minify to the latest version HOT 2
- Backend list tree view unable to expand from second level on HOT 2
- UI Breadcrumb - styles are broken HOT 5
- Creating local theme through the backend results in an exception. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from winter.