| 59 | int phxsqlproxymain(int argc, char *argv[], phxsqlproxy::PHXSqlProxyConfig* config); |
| 60 | |
| 61 | int main(int argc, char *argv[]) { |
| 62 | InitPhxsqlPlugins(); |
| 63 | InitProxyPlugins(); |
| 64 | |
| 65 | phxsqlproxy::PHXSqlProxyConfig * config = new phxsqlproxy::PHXSqlProxyConfig(); |
| 66 | if (config->ReadFileWithConfigDirPath(argv[1])) { |
| 67 | phxsql::LogError("ReadConfig [%s] failed", argv[1]); |
| 68 | printf("ReadConfig [%s] failed\n", argv[1]); |
| 69 | exit(-1); |
| 70 | } |
| 71 | |
| 72 | phxsql::PhxGLog::OpenLog("phxsqlproxy", config->GetSvrLogLevel(), config->GetSvrLogPath(), config->GetSvrLogFileMaxSize()); |
| 73 | |
| 74 | return phxsqlproxymain(argc, argv, config); |
| 75 | } |
nothing calls this directly
no test coverage detected