日志完善

This commit is contained in:
2024-06-27 15:58:09 +08:00
parent e0aa944d7d
commit ea93613c82
3 changed files with 18 additions and 11 deletions

View File

@@ -147,7 +147,7 @@ namespace Tnb.WarehouseMgr
if (!isOk)
{
throw Oops.Oh(ErrorCode.COM1001);
throw new Exception($"料架id{input.carry_id}载具解绑失败");
}
@@ -227,6 +227,8 @@ namespace Tnb.WarehouseMgr
}
catch (Exception ex)
{
Logger.LogError($"【CarryCodeUnbind】 {ex.Message}");
Logger.LogError($"【CarryCodeUnbind】 {ex.StackTrace}");
return await ToApiResult(JNPF.Common.Enums.HttpStatusCode.InternalServerError, ex.Message);
}
return Task.FromResult(true);