浏览代码

#IQRV #comment [ResouceWatcher] FetchSystemSnapshot 添加告警

gifur 3 年之前
父节点
当前提交
5569a31718
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 2 0
      Module/include/EventCode.h
  2. 2 0
      Module/mod_ResourceWatcher/mod_ResourceWatcher.cpp

+ 2 - 0
Module/include/EventCode.h

@@ -882,6 +882,8 @@ ERROR_ACCESSAUTH_CONNECT_ACS}
 #define LOG_WARN_DELETE_DNS_CUST	0x50A00033
 #define LOG_ERR_DELETE_DNS_FAILED	0x50A00034
 #define LOG_INFO_MONITOR_SETTINGS	0x50A00035
+#define LOG_INFO_MONITOR_SETTINGS_GET	0x50A00036
+
 
 #define LOG_WARN_VER_DELETE	0x50A00040
 

+ 2 - 0
Module/mod_ResourceWatcher/mod_ResourceWatcher.cpp

@@ -1763,6 +1763,8 @@ void ResourceWatcherEntity::FetchSystemSnapshot(
     if (ret) {
         ctx->Ans.result = 0;
         ctx->Ans.msg = info;
+        LogWarn(Severity_Low, Error_Debug, LOG_INFO_MONITOR_SETTINGS_GET, info);
+
     } else {
         ctx->Ans.result = -1;
         ctx->Ans.msg = "调用 GetMonitorInfo 接口失败";