RabbitMQ logging
This commit is contained in:
parent
edd11ada72
commit
22deccf148
@ -1,4 +1,5 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using MSAdminUsuarios.Context;
|
||||
using MSAdminUsuarios.Controllers;
|
||||
@ -145,6 +146,8 @@ namespace MSAdminUsuarios.Utils
|
||||
|
||||
var PPUCtrl = new PerfilesPorUsuarioController(context);
|
||||
var result = await PPUCtrl.GuardarPerfilesPorUsuario(data!);
|
||||
logger.LogWarning(20,result.ToString());
|
||||
|
||||
|
||||
if (result is OkResult)
|
||||
{
|
||||
@ -155,6 +158,9 @@ namespace MSAdminUsuarios.Utils
|
||||
catch (Exception ex)
|
||||
{
|
||||
// Temporalmente solo logeamos el error en lugar de rechazar
|
||||
logger.LogCritical(1, ex.ToString());
|
||||
logger.LogCritical(2, ex.Message);
|
||||
logger.LogCritical(3, ex.InnerException?.ToString());
|
||||
logger.LogCritical(ExMessage(ex));
|
||||
//model.BasicReject(ea.DeliveryTag, true);
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
"ConString": "user id=HIMSCAP;password=ITTASA2017;data source=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=181.129.245.90)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=PROYECTOS)))"
|
||||
},
|
||||
"RabbitMQConfig": {
|
||||
"HostName": "192.168.1.69",
|
||||
"HostName": "192.168.10.69",
|
||||
"UserName": "user",
|
||||
"Password": "password"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user