Skip to content

Commit

Permalink
📅 Desabilitando coletor de iterações e incluindo novo servidor
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafaelfcosta committed Jul 5, 2019
1 parent ac5ae58 commit 23f64f9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions ide/src/main/java/br/univali/ps/nucleo/PSAnalytics.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class PSAnalytics {
boolean pode_enviar_dados = true;
private static String SERVER_LIST = "https://raw.githubusercontent.com/UNIVALI-LITE/Portugol-Studio/master/ide/src/main/resources/br/univali/ps/nucleo/serverList.json";
private static List<String> URL_LIST;
public static String URL_PADRAO = "https://portugol-studio-analytics.herokuapp.com";
public static String URL_PADRAO = "https://portugol-analytics.herokuapp.com";

public PSAnalytics() {
this.URL_LIST = new ArrayList<>();
Expand Down Expand Up @@ -204,7 +204,7 @@ public void iniciar_sessao_servidor(){
editar_usuario_servidor(url, Configuracoes.getInstancia().getUserAnalyticsID(), true, ip);
}
System.out.println("Enviou ao servidor " + url);
new LogManager().SendToServerOnStart(url);
// new LogManager().SendToServerOnStart(url);
break;
} catch (Exception ex) {
System.out.println("Erro no envio ao servidor " + url);
Expand Down
4 changes: 2 additions & 2 deletions ide/src/main/java/br/univali/ps/ui/Lancador.java
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@ private void start(String argumentos[])
frame = new JFrame(); // a instância do JFrame deve ser criada na thread do Swing
resizer.registerComponent(frame);

ColetorInteracao coletor = ColetorInteracao.getInstancia();
coletor.inspeciona(frame);
// ColetorInteracao coletor = ColetorInteracao.getInstancia();
// coletor.inspeciona(frame);
});

}
Expand Down
4 changes: 2 additions & 2 deletions ide/src/main/java/br/univali/ps/ui/abas/AbaCodigoFonte.java
Original file line number Diff line number Diff line change
Expand Up @@ -2166,7 +2166,7 @@ private void executar(Estado estado) throws InterruptedException, ErroCompilacao
exibirResultadoAnalise(resultadoAnalise);
});

new LogManager(programaCompilado, editor.getTextArea().getText(), getNumeroDeLinhas(editor.getTextArea().getText()), PSAnalytics.URL_PADRAO, null);
//new LogManager(programaCompilado, editor.getTextArea().getText(), getNumeroDeLinhas(editor.getTextArea().getText()), PSAnalytics.URL_PADRAO, null);

setaAtivacaoBotoesExecucao(true); // libera o botão de execução quando o programa tem erros - issue #358
}
Expand Down Expand Up @@ -2697,7 +2697,7 @@ public void actionPerformed(ActionEvent e) {
console.escreverNoConsole("\nO programa foi interrompido!");
}

new LogManager(programaCompilado, editor.getTextArea().getText(), getNumeroDeLinhas(editor.getTextArea().getText()), PSAnalytics.URL_PADRAO, resultadoExecucao.getErro());
//new LogManager(programaCompilado, editor.getTextArea().getText(), getNumeroDeLinhas(editor.getTextArea().getText()), PSAnalytics.URL_PADRAO, resultadoExecucao.getErro());

painelSaida.selecionaConsole();
ocultarPainelSaida();
Expand Down
3 changes: 2 additions & 1 deletion ide/src/main/resources/br/univali/ps/nucleo/serverList.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[
[
"https://portugol-analytics.herokuapp.com",
"https://portugol-studio-analytics.herokuapp.com",
"http://ui-spy.herokuapp.com",
"http://lite.acad.univali.br:7070"
Expand Down

0 comments on commit 23f64f9

Please sign in to comment.