Пример #1
0
  // ds MySQL logger
  private final void _logMaster(final String p_strInfo) {
    // ds get username and session id
    final String strUsername = m_cLearner.getUsername();
    final int iSessionID = m_cLearner.getSessionID();

    // ds if set
    if (null != strUsername) {
      try {
        // ds log
        m_cMySQLManager.logMaster(strUsername, iSessionID, p_strInfo);
      } catch (SQLException e) {
        System.out.println(
            "["
                + CLogger.getStamp()
                + "]<CGUI>(_logMaster) SQLException: "
                + e.getMessage()
                + " could not log to MySQL master");
      }
    } else {
      System.out.println(
          "["
              + CLogger.getStamp()
              + "]<CGUI>(_logMaster) could not log to master because of empty username");
    }
  }