Skip to content

Commit 7e4b6be

Browse files
committed
a bunch more updates to the various addons myadmin_log calls adding the nmew optional parameters
1 parent 5e0a8fa commit 7e4b6be

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/Plugin.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ public static function getActivate(GenericEvent $event)
5555
public static function getDeactivate(GenericEvent $event)
5656
{
5757
if (in_array($event['type'], [get_service_define('OPENVZ'), get_service_define('SSD_OPENVZ')])) {
58-
myadmin_log(self::$module, 'info', self::$name.' Deactivation', __LINE__, __FILE__);
5958
$serviceClass = $event->getSubject();
59+
myadmin_log(self::$module, 'info', self::$name.' Deactivation', __LINE__, __FILE__, self::$module, $serviceClass->getId());
6060
$GLOBALS['tf']->history->add(self::$module.'queue', $serviceClass->getId(), 'delete', '', $serviceClass->getCustid());
6161
}
6262
}
@@ -107,10 +107,11 @@ public static function getQueue(GenericEvent $event)
107107
{
108108
if (in_array($event['type'], [get_service_define('OPENVZ'), get_service_define('SSD_OPENVZ')])) {
109109
$serviceInfo = $event->getSubject();
110-
myadmin_log(self::$module, 'info', self::$name.' Queue '.ucwords(str_replace('_', ' ', $serviceInfo['action'])).' for VPS '.$serviceInfo['vps_hostname'].'(#'.$serviceInfo['vps_id'].'/'.$serviceInfo['vps_vzid'].')', __LINE__, __FILE__);
110+
$settings = get_module_settings(self::$module);
111+
myadmin_log(self::$module, 'info', self::$name.' Queue '.ucwords(str_replace('_', ' ', $serviceInfo['action'])).' for VPS '.$serviceInfo['vps_hostname'].'(#'.$serviceInfo['vps_id'].'/'.$serviceInfo['vps_vzid'].')', __LINE__, __FILE__, self::$module, $serviceInfo[$settings['PREFIX'].'_id']);
111112
$server_info = $serviceInfo['server_info'];
112113
if (!file_exists(__DIR__.'/../templates/'.$serviceInfo['action'].'.sh.tpl')) {
113-
myadmin_log(self::$module, 'error', 'Call '.$serviceInfo['action'].' for VPS '.$serviceInfo['vps_hostname'].'(#'.$serviceInfo['vps_id'].'/'.$serviceInfo['vps_vzid'].') Does not Exist for '.self::$name, __LINE__, __FILE__, self::$module);
114+
myadmin_log(self::$module, 'error', 'Call '.$serviceInfo['action'].' for VPS '.$serviceInfo['vps_hostname'].'(#'.$serviceInfo['vps_id'].'/'.$serviceInfo['vps_vzid'].') Does not Exist for '.self::$name, __LINE__, __FILE__, self::$module, $serviceInfo[$settings['PREFIX'].'_id']);
114115
} else {
115116
$smarty = new \TFSmarty();
116117
$smarty->assign($serviceInfo);

0 commit comments

Comments
 (0)