removed some unneeeded prints

This commit is contained in:
Master Kwoth 2017-06-15 15:29:41 +02:00
parent a0559b7130
commit e51d2bec23
12 changed files with 18 additions and 26 deletions

View File

@ -70,7 +70,7 @@ namespace NadekoBot.Modules.Administration
catch (Exception ex)
{
await ReplyErrorLocalized("setrole_err").ConfigureAwait(false);
Console.WriteLine(ex.ToString());
_log.Info(ex);
}
}

View File

@ -216,7 +216,7 @@ namespace NadekoBot.Modules.Administration
catch (Exception ex)
{
await ReplyErrorLocalized("self_assign_perms").ConfigureAwait(false);
Console.WriteLine(ex);
_log.Info(ex);
return;
}
var msg = await ReplyConfirmLocalized("self_assign_success",Format.Bold(role.Name)).ConfigureAwait(false);

View File

@ -25,7 +25,7 @@ namespace NadekoBot.Modules.Games.Hangman
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
}

View File

@ -173,7 +173,7 @@ namespace NadekoBot.Modules.Searches
// .FirstOrDefault(jt => jt["role"].ToString() == role)?["general"];
// if (general == null)
// {
// Console.WriteLine("General is null.");
// //Console.WriteLine("General is null.");
// return;
// }
// //get build data for this role
@ -309,7 +309,7 @@ namespace NadekoBot.Modules.Searches
// }
// catch (Exception ex)
// {
// Console.WriteLine(ex);
// //Console.WriteLine(ex);
// await channel.SendMessageAsync("💢 Failed retreiving data for that champion.").ConfigureAwait(false);
// }
// });

View File

@ -86,7 +86,6 @@ namespace NadekoBot.Modules.Searches
{
http.AddFakeHeaders();
var url = $"https://owapi.nadekobot.me/api/v3/u/{battletag}/stats";
System.Console.WriteLine(url);
var res = await http.GetStringAsync($"https://owapi.nadekobot.me/api/v3/u/{battletag}/stats");
var model = JsonConvert.DeserializeObject<OverwatchApiModel.OverwatchResponse>(res);
switch (region)

View File

@ -331,23 +331,16 @@ namespace NadekoBot
private static void SetupLogger()
{
try
var logConfig = new LoggingConfiguration();
var consoleTarget = new ColoredConsoleTarget()
{
var logConfig = new LoggingConfiguration();
var consoleTarget = new ColoredConsoleTarget()
{
Layout = @"${date:format=HH\:mm\:ss} ${logger} | ${message}"
};
logConfig.AddTarget("Console", consoleTarget);
Layout = @"${date:format=HH\:mm\:ss} ${logger} | ${message}"
};
logConfig.AddTarget("Console", consoleTarget);
logConfig.LoggingRules.Add(new LoggingRule("*", LogLevel.Debug, consoleTarget));
logConfig.LoggingRules.Add(new LoggingRule("*", LogLevel.Debug, consoleTarget));
LogManager.Configuration = logConfig;
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
LogManager.Configuration = logConfig;
}
}
}

View File

@ -128,7 +128,6 @@ namespace NadekoBot.Services.ClashOfClans
SequenceNumber = i,
});
}
Console.WriteLine(cw.Bases.Capacity);
uow.ClashOfClans.Add(cw);
await uow.CompleteAsync();
return cw;

View File

@ -30,7 +30,6 @@ namespace NadekoBot.Services.Games
{
var res = await http.GetStringAsync(string.Format(apiEndpoint, message)).ConfigureAwait(false);
var cbr = JsonConvert.DeserializeObject<ChatterBotResponse>(res);
//Console.WriteLine(cbr.Convo_id);
return cbr.BotSay.Replace("<br/>", "\n");
}
}

View File

@ -81,7 +81,11 @@ namespace NadekoBot.Services.Impl
ulong.TryParse(data[nameof(ClientId)], out clId);
ClientId = clId;
SoundCloudClientId = data[nameof(SoundCloudClientId)];
var scId = data[nameof(SoundCloudClientId)];
SoundCloudClientId = scId;
//SoundCloudClientId = string.IsNullOrWhiteSpace(scId)
// ?
// : scId;
CarbonKey = data[nameof(CarbonKey)];
var dbSection = data.GetSection("db");
Db = new DBConfig(string.IsNullOrWhiteSpace(dbSection["Type"])

View File

@ -27,7 +27,6 @@ namespace NadekoBot.Services.Music
using (var http = new HttpClient())
{
response = await http.GetStringAsync($"http://api.soundcloud.com/resolve?url={url}&client_id={_creds.SoundCloudClientId}").ConfigureAwait(false);
}

View File

@ -17,7 +17,6 @@ namespace NadekoBot.Services.Utility
public MessageRepeaterService(NadekoBot bot, DiscordShardedClient client, IEnumerable<GuildConfig> gcs)
{
System.Console.WriteLine(bot.Ready);
var _ = Task.Run(async () =>
{
while (!bot.Ready)

View File

@ -94,7 +94,7 @@ namespace NadekoBot.Extensions
}
}
}
catch (Exception ex) { Console.WriteLine(ex); }
catch (Exception ex) { }
};
using (msg.OnReaction(client, changePage, changePage))