stage for PR

This commit is contained in:
appelemac 2016-08-22 12:09:36 +02:00
parent f5cb629a63
commit f66d42b891
2 changed files with 3 additions and 5 deletions

View File

@ -25,6 +25,7 @@ namespace NadekoBot.Modules.Searches
{ {
_google = youtube; _google = youtube;
} }
[LocalizedCommand, LocalizedDescription, LocalizedSummary] [LocalizedCommand, LocalizedDescription, LocalizedSummary]
[RequireContext(ContextType.Guild)] [RequireContext(ContextType.Guild)]
public async Task Weather(IMessage imsg, string city, string country) public async Task Weather(IMessage imsg, string city, string country)

View File

@ -29,7 +29,7 @@ namespace NadekoBot
public async Task RunAsync(string[] args) public async Task RunAsync(string[] args)
{ {
SetupLogger(); SetupLogger();
_log.Debug("Logger created, starting client");
//create client //create client
Client = new DiscordSocketClient(new DiscordSocketConfig Client = new DiscordSocketClient(new DiscordSocketConfig
{ {
@ -45,7 +45,7 @@ namespace NadekoBot
Localizer = new Localization(); Localizer = new Localization();
Google = new GoogleApiService(); Google = new GoogleApiService();
Stats = new StatsService(Client); Stats = new StatsService(Client);
_log = LogManager.GetCurrentClassLogger();
//setup DI //setup DI
var depMap = new DependencyMap(); var depMap = new DependencyMap();
@ -72,7 +72,6 @@ namespace NadekoBot
private void SetupLogger() private void SetupLogger()
{ {
try try
{ {
var logConfig = new LoggingConfiguration(); var logConfig = new LoggingConfiguration();
@ -85,12 +84,10 @@ namespace NadekoBot
logConfig.LoggingRules.Add(new LoggingRule("*", LogLevel.Debug, consoleTarget)); logConfig.LoggingRules.Add(new LoggingRule("*", LogLevel.Debug, consoleTarget));
LogManager.Configuration = logConfig; LogManager.Configuration = logConfig;
} }
catch (Exception ex) { catch (Exception ex) {
Console.WriteLine(ex); Console.WriteLine(ex);
} }
_log = LogManager.GetCurrentClassLogger();
} }
private Task Client_MessageReceived(IMessage imsg) private Task Client_MessageReceived(IMessage imsg)