Skip to content

Commit

Permalink
use domain id in log file name, easy to find correct log file
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunil Pawar committed Aug 20, 2018
1 parent 5f57a26 commit 311e419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Core/Error.php
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ protected static function generateLogFileName($prefix) {
$prefixString = $prefix ? ($prefix . '.') : '';

$hash = self::generateLogFileHash($config);
$fileName = $config->configAndLogDir . 'CiviCRM.' . $prefixString . $hash . '.log';
$fileName = $config->configAndLogDir . 'CiviCRM.' . CIVICRM_DOMAIN_ID . '_' . $prefixString . $hash . '.log';

// Roll log file monthly or if greater than 256M.
// Size-based rotation introduced in response to filesize limits on
Expand Down

1 comment on commit 311e419

@yashodha
Copy link

Choose a reason for hiding this comment

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

Please sign in to comment.