驱动加载日志等级

This commit is contained in:
iioter 2023-05-05 15:32:37 +08:00
parent 56e4a0377a
commit 1e11ba2ef9
2 changed files with 3 additions and 3 deletions

View File

@ -33,8 +33,8 @@ namespace CNC.Fanuc.H
public DeviceFanuc(string device, ILogger logger) public DeviceFanuc(string device, ILogger logger)
{ {
//输入授权码,禁止非法使用 //输入授权码,禁止非法使用
if (!Authorization.SetAuthorizationCode("")) //if (!Authorization.SetAuthorizationCode(""))
return; // return;
_device = device; _device = device;
_logger = logger; _logger = logger;

View File

@ -132,7 +132,7 @@ namespace Plugin
} }
catch (Exception ex) catch (Exception ex)
{ {
_logger.LogDebug($"LoadAllDrivers Error {ex}"); _logger.LogError(ex,$"LoadAllDrivers Error {file}");
} }
} }