增加文件上传日志定位到哪个方法报错

master
孙亮 12 months ago
parent b4e65f0b17
commit 6ee82a8a39

@ -69,7 +69,7 @@ namespace IBKLinker_Minio.Common
} }
catch (Exception ex) catch (Exception ex)
{ {
logger.InfoFormat(ex.ToString()); logger.InfoFormat("MinioBusinessLogic/Download方法错误" + ex.ToString());
throw; throw;
} }
} }
@ -80,6 +80,8 @@ namespace IBKLinker_Minio.Common
/// 文件上传操作日志记录 /// 文件上传操作日志记录
/// </summary> /// </summary>
public void MinioOperationLog(string OperateUser, string FileName, string Operate, string FilePk, string FileUPk, IDbContext db) //传参为操作人、文件名、操作、数据库连接上下文对象 public void MinioOperationLog(string OperateUser, string FileName, string Operate, string FilePk, string FileUPk, IDbContext db) //传参为操作人、文件名、操作、数据库连接上下文对象
{
try
{ {
MinioOperationlog MOdata = new MinioOperationlog(); MinioOperationlog MOdata = new MinioOperationlog();
DateTime time = DateTime.Now;//时间 DateTime time = DateTime.Now;//时间
@ -93,6 +95,13 @@ namespace IBKLinker_Minio.Common
MOdata.CreationTime = time;//创建时间 MOdata.CreationTime = time;//创建时间
db.Insert<MinioOperationlog>(MOdata);//写入数据库 db.Insert<MinioOperationlog>(MOdata);//写入数据库
} }
catch (Exception ex)
{
logger.InfoFormat("MinioBusinessLogic/MinioOperationLog方法错误" + ex.ToString());
throw;
}
}
#endregion #endregion
#region 文件夹递归查询 #region 文件夹递归查询

Loading…
Cancel
Save