Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix the deprecation error/warn log levels
- Loading branch information
Showing
with
2 additions
and
2 deletions.
-
+2
−2
helpers/general.go
There are no files selected for viewing
|
|
@@ -394,9 +394,9 @@ func InitLoggers() { |
|
|
// plenty of time to fix their templates. |
|
|
func Deprecated(item, alternative string, err bool) { |
|
|
if err { |
|
|
DistinctErrorLog.Printf("%s is deprecated and will be removed in Hugo %s. %s", item, hugo.CurrentVersion.Next().ReleaseVersion(), alternative) |
|
|
DistinctErrorLog.Errorf("%s is deprecated and will be removed in Hugo %s. %s", item, hugo.CurrentVersion.Next().ReleaseVersion(), alternative) |
|
|
} else { |
|
|
DistinctWarnLog.Printf("%s is deprecated and will be removed in a future release. %s", item, alternative) |
|
|
DistinctWarnLog.Warnf("%s is deprecated and will be removed in a future release. %s", item, alternative) |
|
|
} |
|
|
} |
|
|
|
|
|
|