File tree 6 files changed +6
-7
lines changed
6 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ using namespace swss;
10
10
11
11
int main (int argc, char **argv)
12
12
{
13
+ swss::Logger::linkToDbNative (" fpmsyncd" );
13
14
DBConnector db (APPL_DB, DBConnector::DEFAULT_UNIXSOCKET, 0 );
14
15
RedisPipeline pipeline (&db);
15
16
RouteSync sync (&pipeline);
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ using namespace swss;
10
10
11
11
int main (int argc, char **argv)
12
12
{
13
+ swss::Logger::linkToDbNative (" intfsyncd" );
13
14
DBConnector db (APPL_DB, DBConnector::DEFAULT_UNIXSOCKET, 0 );
14
15
IntfSync sync (&db);
15
16
Original file line number Diff line number Diff line change @@ -136,20 +136,17 @@ void initSaiApi()
136
136
137
137
int main (int argc, char **argv)
138
138
{
139
- swss::Logger::getInstance (). setMinPrio (swss::Logger::SWSS_NOTICE );
139
+ swss::Logger::linkToDbNative ( " orchagent " );
140
140
141
141
SWSS_LOG_ENTER ();
142
142
143
143
int opt;
144
144
sai_status_t status;
145
145
146
- while ((opt = getopt (argc, argv, " m:hd " )) != -1 )
146
+ while ((opt = getopt (argc, argv, " m:h " )) != -1 )
147
147
{
148
148
switch (opt)
149
149
{
150
- case ' d' :
151
- swss::Logger::getInstance ().setMinPrio (swss::Logger::SWSS_DEBUG);
152
- break ;
153
150
case ' m' :
154
151
gMacAddress = MacAddress (optarg );
155
152
break ;
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ void handleVlanIntfFile(string file);
47
47
48
48
int main (int argc, char **argv)
49
49
{
50
+ Logger::linkToDbNative (" portsyncd" );
50
51
int opt;
51
52
string port_config_file = DEFAULT_PORT_CONFIG_FILE;
52
53
string vlan_interfaces_file = DEFAULT_VLAN_INTERFACES_FILE;
Original file line number Diff line number Diff line change @@ -162,8 +162,6 @@ vector<string> read_directory(const string &path)
162
162
163
163
int main (int argc, char **argv)
164
164
{
165
- Logger::setMinPrio (Logger::SWSS_NOTICE);
166
-
167
165
vector<string> files;
168
166
if (argc == 1 )
169
167
{
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ using namespace swss;
11
11
12
12
int main (int argc, char **argv)
13
13
{
14
+ swss::Logger::linkToDbNative (" teamsyncd" );
14
15
DBConnector db (APPL_DB, DBConnector::DEFAULT_UNIXSOCKET, 0 );
15
16
Select s;
16
17
TeamSync sync (&db, &s);
You can’t perform that action at this time.
0 commit comments