Exemplo n.º 1
0
        public async Task <LogLevels> GetRootLogLevelAsync()
        {
            var response = await GetLogsUrl("/logger/rootLogger")
                           .GetAsync()
                           .ConfigureAwait(false);

            return(await HandleResponseAsync <LogLevels>(response, s =>
                                                         BitbucketHelpers.StringToLogLevel(JsonConvert.DeserializeObject <dynamic>(s).logLevel.ToString()))
                   .ConfigureAwait(false));
        }