@@ -5077,7 +5077,7 @@ func (repman *ReplicationManager) handlerMuxAcceptSubscription(w http.ResponseWr
5077
5077
return
5078
5078
}
5079
5079
5080
- mycluster .LogModulePrintf (mycluster .Conf .Verbose , config .ConstLogModGeneral , config . LvlInfo , "User %s registered as sponsor successfully" , userform .Username )
5080
+ mycluster .LogModulePrintf (mycluster .Conf .Verbose , config .ConstLogModGeneral , "ALERT" , "User %s registered as sponsor successfully" , userform .Username )
5081
5081
5082
5082
if repman .Conf .Cloud18SalesSubscriptionValidateScript != "" {
5083
5083
mycluster .LogModulePrintf (mycluster .Conf .Verbose , config .ConstLogModGeneral , config .LvlInfo , "Executing script after sponsor validated" )
@@ -5090,7 +5090,7 @@ func (repman *ReplicationManager) handlerMuxAcceptSubscription(w http.ResponseWr
5090
5090
5091
5091
err = repman .SendSponsorActivationMail (mycluster , userform )
5092
5092
if err != nil {
5093
- mycluster .LogModulePrintf (mycluster .Conf .Verbose , config .ConstLogModGeneral , config . LvlErr , "Failed to send sponsor activation email to %s: %v" , userform .Username , err )
5093
+ mycluster .LogModulePrintf (mycluster .Conf .Verbose , config .ConstLogModGeneral , "ALERT" , "Failed to send sponsor activation email to %s: %v" , userform .Username , err )
5094
5094
http .Error (w , "Error sending email :" + err .Error (), 500 )
5095
5095
return
5096
5096
}
@@ -5101,7 +5101,7 @@ func (repman *ReplicationManager) handlerMuxAcceptSubscription(w http.ResponseWr
5101
5101
5102
5102
err = repman .SendSponsorCredentialsMail (mycluster )
5103
5103
if err != nil {
5104
- mycluster .LogModulePrintf (mycluster .Conf .Verbose , config .ConstLogModGeneral , config . LvlErr , "Failed to send sponsor db credentials to %s: %v" , userform .Username , err )
5104
+ mycluster .LogModulePrintf (mycluster .Conf .Verbose , config .ConstLogModGeneral , "ALERT" , "Failed to send sponsor db credentials to %s: %v" , userform .Username , err )
5105
5105
http .Error (w , "Error sending email :" + err .Error (), 500 )
5106
5106
return
5107
5107
}
@@ -5170,7 +5170,7 @@ func (repman *ReplicationManager) handlerMuxRejectSubscription(w http.ResponseWr
5170
5170
return
5171
5171
}
5172
5172
5173
- mycluster .LogModulePrintf (mycluster .Conf .Verbose , config .ConstLogModGeneral , config . LvlInfo , "Pending subscription for %s is rejected!" )
5173
+ mycluster .LogModulePrintf (mycluster .Conf .Verbose , config .ConstLogModGeneral , "ALERT" , "Pending subscription for %s is rejected!" )
5174
5174
5175
5175
err = repman .SendPendingRejectionMail (mycluster , userform )
5176
5176
if err != nil {
@@ -5228,9 +5228,9 @@ func (repman *ReplicationManager) handlerMuxRemoveSponsor(w http.ResponseWriter,
5228
5228
return
5229
5229
}
5230
5230
5231
- mycluster .LogModulePrintf (mycluster .Conf .Verbose , config .ConstLogModGeneral , config . LvlInfo , "Ending subscription from sponsor %s for cluster %s by %s" , userform .Username , mycluster .Name , uinfomap ["User" ])
5231
+ mycluster .LogModulePrintf (mycluster .Conf .Verbose , config .ConstLogModGeneral , "ALERT" , "Ending subscription from sponsor %s for cluster %s by %s" , userform .Username , mycluster .Name , uinfomap ["User" ])
5232
5232
} else {
5233
- mycluster .LogModulePrintf (mycluster .Conf .Verbose , config .ConstLogModGeneral , config . LvlInfo , "Ending subscription for cluster %s by %s" , mycluster .Name , uinfomap ["User" ])
5233
+ mycluster .LogModulePrintf (mycluster .Conf .Verbose , config .ConstLogModGeneral , "ALERT" , "Ending subscription for cluster %s by %s" , mycluster .Name , uinfomap ["User" ])
5234
5234
}
5235
5235
5236
5236
err = repman .EndSubscription (userform , mycluster )
0 commit comments