Skip to content

Commit

Permalink
lots of updates to myadmin_log calls adding the optional module and s…
Browse files Browse the repository at this point in the history
…ervice id parameters in applicable places
  • Loading branch information
detain committed Mar 6, 2019
1 parent e608f2c commit 67c4929
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static function getActivate(GenericEvent $event)
{
$serviceClass = $event->getSubject();
if ($event['category'] == get_service_define('LITESPEED')) {
myadmin_log(self::$module, 'info', 'LiteSpeed Activation', __LINE__, __FILE__);
myadmin_log(self::$module, 'info', 'LiteSpeed Activation', __LINE__, __FILE__, self::$module, $serviceClass->getId());
function_requirements('activate_litespeed');
$response = activate_litespeed($serviceClass->getIp(), $event['field1'], $event['field2']);
if (isset($response['LiteSpeed_eService']['serial'])) {
Expand All @@ -69,7 +69,7 @@ public static function getDeactivate(GenericEvent $event)
{
$serviceClass = $event->getSubject();
if ($event['category'] == get_service_define('LITESPEED')) {
myadmin_log(self::$module, 'info', 'LiteSpeed Deactivation', __LINE__, __FILE__);
myadmin_log(self::$module, 'info', 'LiteSpeed Deactivation', __LINE__, __FILE__, self::$module, $serviceClass->getId());
function_requirements('deactivate_litespeed');
deactivate_litespeed($serviceClass->getIp());
$event->stopPropagation();
Expand All @@ -85,7 +85,7 @@ public static function getChangeIp(GenericEvent $event)
$serviceClass = $event->getSubject();
$settings = get_module_settings(self::$module);
$litespeed = new \Detain\LiteSpeed\LiteSpeed(FANTASTICO_USERNAME, FANTASTICO_PASSWORD);
myadmin_log(self::$module, 'info', 'IP Change - (OLD:'.$serviceClass->getIp().") (NEW:{$event['newip']})", __LINE__, __FILE__);
myadmin_log(self::$module, 'info', 'IP Change - (OLD:'.$serviceClass->getIp().") (NEW:{$event['newip']})", __LINE__, __FILE__, self::$module, $serviceClass->getId());
$result = $litespeed->cancel(false, $serviceClass->getIp());
function_requirements('activate_litespeed');
$result = activate_litespeed($event['newip'], $event['field1'], $event['field2']);
Expand Down

0 comments on commit 67c4929

Please sign in to comment.