Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
codecov:
require_ci_to_pass: no

coverage:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test

precision: 2
round: down
range: "70...100"
status:
patch: true
parsers:
gcov:
branch_detection:
conditional: yes
loop: yes
method: no
macro: no
comment:
layout: "diff,flags,files,footer"
behavior: default
require_changes: no

github_checks:
annotations: true
5 changes: 5 additions & 0 deletions src/Logger/CreateDatabaseLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,9 @@ public function __invoke(array $config)
{
return app(DatabaseHandler::class, [$config]);
}

public function testFunction()
{
echo "testers";
}
}
1 change: 1 addition & 0 deletions src/Logger/Monolog/Handler/DatabaseHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public function __construct($level = Logger::DEBUG, $bubble = true, Config $conf
$this->maxRecordLength = $this->config->get('db-logging.max_record_length');
$this->appLogName = $this->config->get('db-logging.log_name');
parent::__construct($level, $bubble);
$x = 1;
}

/**
Expand Down
4 changes: 3 additions & 1 deletion src/Logger/MonologDatabaseHandlerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@ public function boot()
$this->publishes([$configPath => $publishPath], 'config');
}


/**
* Register the service provider.
*
* @return void
*/
public function register()
{
{
echo "here";
$configPath = __DIR__ . '/../../config/db-logging.php';
$this->mergeConfigFrom($configPath, 'db-logging');
$this->app->bind(DatabaseHandler::class, function ($app, $params) {
Expand Down
1 change: 0 additions & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ protected function getPackageProviders($app)
{
return [MonologDatabaseHandlerServiceProvider::class];
}

/**
* Define environment setup.
*
Expand Down