Skip to content

Commit

Permalink
Merge pull request #15 from wp-content-framework/release/v0.0.13
Browse files Browse the repository at this point in the history
Release/v0.0.13
  • Loading branch information
technote-space committed Mar 16, 2019
2 parents 143b8fa + ac1fcaf commit 9bc029e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion configs/config.php
Expand Up @@ -2,7 +2,7 @@
/**
* WP_Framework_Log Configs Config
*
* @version 0.0.1
* @version 0.0.13
* @author Technote
* @copyright Technote All Rights Reserved
* @license http://www.opensource.org/licenses/gpl-2.0.php GNU General Public License, version 2
Expand Down Expand Up @@ -50,6 +50,7 @@
// suppress log messages
'suppress_log_messages' => [
'Non-static method WP_Feed_Cache::create() should not be called statically',
'Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set \'always_populate_raw_post_data\' to \'-1\' in php.ini and use the php://input stream instead.',
],

];
5 changes: 2 additions & 3 deletions src/classes/models/log.php
Expand Up @@ -2,7 +2,7 @@
/**
* WP_Framework_Log Classes Models Log
*
* @version 0.0.11
* @version 0.0.13
* @author Technote
* @copyright Technote All Rights Reserved
* @license http://www.opensource.org/licenses/gpl-2.0.php GNU General Public License, version 2
Expand Down Expand Up @@ -104,13 +104,12 @@ public function log( $message, $context = null, $level = '' ) {
return false;
}

global $wp_version;
$data = $this->get_called_info();
$data['message'] = is_string( $message ) ? $this->translate( $message ) : json_encode( $message );
$data['framework_version'] = $this->app->get_framework_version();
$data['plugin_version'] = $this->app->get_plugin_version();
$data['php_version'] = phpversion();
$data['wordpress_version'] = $wp_version;
$data['wordpress_version'] = $this->wp_version();
$data['level'] = $level;
$data['framework_packages'] = json_encode( $this->app->array->combine( array_map( function ( $package ) {
/** @var \WP_Framework\Package_Base $package */
Expand Down

0 comments on commit 9bc029e

Please sign in to comment.