Skip to content

Commit

Permalink
Added debug message for API problems
Browse files Browse the repository at this point in the history
Updated pom and .gitignore
  • Loading branch information
RoinujNosde committed Sep 3, 2021
1 parent 34b5224 commit 5bd727d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 31 deletions.
25 changes: 1 addition & 24 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,4 @@
/.classpath
/.project
/CryptoMarket.iml
/.idea/compiler.xml
/.idea/discord.xml
/.idea/dictionaries/edson.xml
/.idea/jarRepositories.xml
/.idea/libraries/Maven__com_destroystokyo_paper_paper_api_1_15_2_R0_1_SNAPSHOT.xml
/.idea/libraries/Maven__com_github_MilkBowl_VaultAPI_1_7.xml
/.idea/libraries/Maven__com_google_code_findbugs_jsr305_1_3_9.xml
/.idea/libraries/Maven__com_google_code_gson_gson_2_8_0.xml
/.idea/libraries/Maven__com_google_guava_guava_21_0.xml
/.idea/libraries/Maven__com_googlecode_json_simple_json_simple_1_1_1.xml
/.idea/libraries/Maven__commons_lang_commons_lang_2_6.xml
/.idea/libraries/Maven__junit_junit_4_10.xml
/.idea/libraries/Maven__net_md_5_bungeecord_chat_1_15_SNAPSHOT.xml
/.idea/libraries/Maven__org_bukkit_bukkit_1_13_1_R0_1_SNAPSHOT.xml
/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_1.xml
/.idea/libraries/Maven__org_ow2_asm_asm_8_0_1.xml
/.idea/libraries/Maven__org_ow2_asm_asm_analysis_8_0_1.xml
/.idea/libraries/Maven__org_ow2_asm_asm_commons_8_0_1.xml
/.idea/libraries/Maven__org_ow2_asm_asm_tree_8_0_1.xml
/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_25.xml
/.idea/libraries/Maven__org_yaml_snakeyaml_1_25.xml
/.idea/misc.xml
/.idea/modules.xml
/.idea/vcs.xml
/.idea/
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>net.epconsortium</groupId>
<artifactId>CryptoMarket</artifactId>
<version>2.1.0</version>
<version>2.1.1</version>
<name>CryptoMarket</name>
<description>A plugin that brings the cryptocoins market experience to your server!</description>
<url>https://www.spigotmc.org/resources/cryptomarket.69031/</url>
Expand Down Expand Up @@ -32,6 +32,7 @@
<artifactId>maven-shade-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<relocations>
<relocation>
<pattern>com.google.gson</pattern>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,7 @@ private void updateDailyRates0() {
JsonObject jo = json.getAsJsonObject("Time Series (Digital Currency Daily)");
if (jo == null) {
plugin.getLogger().warning("API limit exceeded. Wait a few minutes and try again.");
if (json.has("Note")) {
CryptoMarket.debug(json.get("Note").getAsString());
}
CryptoMarket.debug(json.toString());
errors.put(coin, true);
continue;
}
Expand Down Expand Up @@ -297,9 +295,7 @@ private void updateCurrentExchangeRate0() {
JsonElement realtimeCurrencyExchangeRate = json.get("Realtime Currency Exchange Rate");
if (realtimeCurrencyExchangeRate == null) {
plugin.getLogger().warning("API limit exceeded. Wait a few minutes and try again.");
if (json.has("Note")) {
CryptoMarket.debug(json.get("Note").getAsString());
}
CryptoMarket.debug(json.toString());
error = true;
continue;
}
Expand Down

0 comments on commit 5bd727d

Please sign in to comment.