OSDN Git Service

logger update
authortakamaru <takamaru@1ed66053-1c2d-0410-8867-f7571e6e31d3>
Mon, 16 Feb 2009 00:39:57 +0000 (00:39 +0000)
committertakamaru <takamaru@1ed66053-1c2d-0410-8867-f7571e6e31d3>
Mon, 16 Feb 2009 00:39:57 +0000 (00:39 +0000)
git-svn-id: http://10.144.169.20/repos/um/branches/l7vsd-3.x-shamshel@6900 1ed66053-1c2d-0410-8867-f7571e6e31d3

logger/logger_impl.h

index f1b963f..0d1c121 100644 (file)
@@ -205,7 +205,7 @@ public:
                                                                                                                                                buf.str(),\r
                                                                                                                                                log4cxx::spi::LocationInfo(file, "", line));\r
                        // send_trap\r
-                       if( snmpSendtrap ){\r
+                       if( snmpSendtrap && ( LOG_CAT_L7VSD_SNMPBRIDGE != cat ) ){\r
                                snmpSendtrap( buf.str() );\r
                        }\r
                }\r
@@ -263,7 +263,7 @@ public:
                                                                                                                                                buf.str(),\r
                                                                                                                                                log4cxx::spi::LocationInfo(file, "", line));\r
                        // send_trap\r
-                       if( snmpSendtrap ){\r
+                       if( snmpSendtrap && ( LOG_CAT_L7VSD_SNMPBRIDGE != cat ) ){\r
                                snmpSendtrap( buf.str() );\r
                        }\r
                }\r