Skip to content

Commit 7ef727f

Browse files
committed
updating myadmin_log calls adding the optional module and service id parameters in applicable places
1 parent f7b6f6d commit 7ef727f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/Plugin.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ public static function apiRegister(GenericEvent $event)
6161
public static function getActivate(GenericEvent $event)
6262
{
6363
if ($event['category'] == get_service_define('WEB_CPANEL')) {
64-
myadmin_log(self::$module, 'info', 'Cpanel Activation', __LINE__, __FILE__);
65-
$serviceClass = $event->getSubject();
64+
$serviceClass = $event->getSubject();
65+
myadmin_log(self::$module, 'info', 'Cpanel Activation', __LINE__, __FILE__, self::$module, $serviceClass->getId());
6666
$serviceTypes = run_event('get_service_types', false, self::$module);
6767
$settings = get_module_settings(self::$module);
6868
$extra = run_event('parse_service_extra', $serviceClass->getExtra(), self::$module);
@@ -336,8 +336,8 @@ function_requirements('whm_api');
336336
public static function getDeactivate(GenericEvent $event)
337337
{
338338
if (in_array($event['type'], [get_service_define('WEB_CPANEL'), get_service_define('WEB_WORDPRESS')])) {
339-
myadmin_log(self::$module, 'info', 'Cpanel Deactivation', __LINE__, __FILE__);
340-
$serviceClass = $event->getSubject();
339+
$serviceClass = $event->getSubject();
340+
myadmin_log(self::$module, 'info', 'Cpanel Deactivation', __LINE__, __FILE__, self::$module, $serviceClass->getId());
341341
$settings = get_module_settings(self::$module);
342342
if ($serviceClass->getServer() > 0) {
343343
$serverdata = get_service_master($serviceClass->getServer(), self::$module);
@@ -379,7 +379,7 @@ public static function getTerminate(GenericEvent $event)
379379
{
380380
if (in_array($event['type'], [get_service_define('WEB_CPANEL'), get_service_define('WEB_WORDPRESS')])) {
381381
$serviceClass = $event->getSubject();
382-
myadmin_log(self::$module, 'info', 'Cpanel Termination', __LINE__, __FILE__);
382+
myadmin_log(self::$module, 'info', 'Cpanel Termination', __LINE__, __FILE__, self::$module, $serviceClass->getId());
383383
$settings = get_module_settings(self::$module);
384384
$serverdata = get_service_master($serviceClass->getServer(), self::$module);
385385
$hash = $serverdata[$settings['PREFIX'].'_key'];

0 commit comments

Comments
 (0)