Changeset 27 for trunk/src/sh_error.c
- Timestamp:
- Apr 6, 2006, 8:55:51 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_error.c
r22 r27 639 639 } 640 640 641 #if def SH_WITH_CLIENT641 #if defined(SH_WITH_CLIENT) || defined(SH_WITH_SERVER) 642 642 /* set severity for TCP export 643 643 */ … … 843 843 #endif 844 844 845 #if def SH_WITH_CLIENT845 #if defined(SH_WITH_CLIENT) || defined(SH_WITH_SERVER) 846 846 char * ex_msg; 847 847 #endif … … 862 862 static int syslog_block = 0; 863 863 static int log_block = 0; 864 #if defined(SH_WITH_CLIENT) 864 #if defined(SH_WITH_CLIENT) || defined(SH_WITH_SERVER) 865 865 static int export_block = 0; 866 866 #endif … … 926 926 severity = sev; 927 927 928 /* these are messages from remote sources 929 */ 928 930 if ((severity & SH_ERR_INET) != 0) 929 931 { … … 939 941 ( (errFlags.sysloglevel & severity ) == 0 || 940 942 (errFlags.syslog_class & (1 << class)) == 0 ) && 941 #if def SH_WITH_CLIENT943 #if defined(SH_WITH_CLIENT) || defined(SH_WITH_CLIENT) 942 944 ( (errFlags.exportlevel & severity ) == 0 || 943 945 (errFlags.export_class & (1 << class)) == 0 ) && … … 958 960 (errFlags.mail_class & (1 << class)) == 0 ) 959 961 #ifdef SH_WITH_SERVER 960 && (flag_inet == S_FALSE)962 && (flag_inet == S_FALSE) /* still log messages from remote sources */ 961 963 #endif 962 964 ) … … 1119 1121 * to log server 1120 1122 ****************************************************/ 1121 #if def SH_WITH_CLIENT1123 #if defined(SH_WITH_CLIENT) || defined(SH_WITH_SERVER) 1122 1124 /* Export by TCP. 1123 1125 */ 1124 if ((errFlags.exportlevel & severity ) != 0 && 1125 (errFlags.export_class & (1 << class)) != 0 && 1126 (errFlags.exportlevel & SH_ERR_NOT) == 0 && 1127 class != AUD && 1128 sh.flag.isserver != GOOD && 1129 (flag_inet == S_FALSE) ) /* don't log inet to export */ 1126 1127 if ( ((errFlags.exportlevel & severity ) != 0 && 1128 (errFlags.export_class & (1 << class)) != 0 && 1129 (errFlags.exportlevel & SH_ERR_NOT) == 0 && 1130 class != AUD ) 1131 #ifdef SH_WITH_SERVER 1132 || (flag_inet == S_TRUE) /* always log inet to export */ 1133 #endif 1134 /* sh.flag.isserver != GOOD && */ 1135 /* (flag_inet == S_FALSE) */ /* don't log inet to export */ 1136 ) 1130 1137 { 1131 1138 if (export_block == 0) … … 1142 1149 sl_snprintf(ex_msg, ex_len, _("%d?%u?%s"), 1143 1150 severity, class, lmsg->msg); 1144 1145 1151 retval = sh_forward (ex_msg); 1146 1152 SH_FREE(ex_msg);
Note:
See TracChangeset
for help on using the changeset viewer.