Check etherpad API is reachable and log an error if it isn't

master
Daniel Berteaud 10 years ago
parent 17031d071c
commit dcfc8c174d
  1. 4
      vroom.pl

@ -63,6 +63,10 @@ if ($config->{'etherpad.uri'} =~ m/https?:\/\/.*/ && $config->{'etherpad.api_key
url => $config->{'etherpad.uri'}, url => $config->{'etherpad.uri'},
apikey => $config->{'etherpad.api_key'} apikey => $config->{'etherpad.api_key'}
}); });
if (!$ec->check_token){
app->log->info("Can't connect to Etherpad-Lite API, check your API key and uri");
$ec = undef;
}
} }
# Load I18N, and declare supported languages # Load I18N, and declare supported languages

Loading…
Cancel
Save