浏览代码

change loglevels

Nyanmisaka 4 年之前
父节点
当前提交
a78c8e3854
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      MediaBrowser.Api/Subtitles/SubtitleService.cs

+ 4 - 4
MediaBrowser.Api/Subtitles/SubtitleService.cs

@@ -325,18 +325,18 @@ namespace MediaBrowser.Api.Subtitles
 
                     if (fileSize != null && fileSize > 0)
                     {
-                        Logger.LogInformation("Fallback font size is {0} Bytes", fileSize);
+                        Logger.LogDebug("Fallback font size is {0} Bytes", fileSize);
 
                         if (fileSize <= maxSize)
                         {
                             return await ResultFactory.GetStaticFileResult(Request, fontFile.FullName);
                         }
 
-                        Logger.LogInformation("The selected font is too large. Maximum allowed size is 10 Megabytes");
+                        Logger.LogWarning("The selected font is too large. Maximum allowed size is 10 Megabytes");
                     }
                     else
                     {
-                        Logger.LogInformation("The selected font is null or empty");
+                        Logger.LogWarning("The selected font is null or empty");
                     }
                 }
                 catch (Exception ex)
@@ -346,7 +346,7 @@ namespace MediaBrowser.Api.Subtitles
             }
             else
             {
-                Logger.LogInformation("The path of fallback font has not been set");
+                Logger.LogWarning("The path of fallback font has not been set");
             }
 
             return string.Empty;