驱动加载日志等级
This commit is contained in:
parent
56e4a0377a
commit
1e11ba2ef9
@ -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;
|
||||||
|
@ -132,7 +132,7 @@ namespace Plugin
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.LogDebug($"LoadAllDrivers Error {ex}");
|
_logger.LogError(ex,$"LoadAllDrivers Error {file}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user