diff options
author | Bjørn Erik Pedersen <[email protected]> | 2023-06-19 13:27:03 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2023-06-19 13:27:03 +0200 |
commit | 3ca29b15636953bcaa2c391f77f62a53cde7bb67 (patch) | |
tree | dacb2492a8893baf980c38fc8ad9b95b90dda0b0 /resources/resource_transformers | |
parent | fdb0b7fb19404198ffb8bb3a2ff0aae325db0233 (diff) | |
download | hugo-3ca29b15636953bcaa2c391f77f62a53cde7bb67.tar.gz hugo-3ca29b15636953bcaa2c391f77f62a53cde7bb67.zip |
tocss/dartsas: Avoid using Logf for the internal Dart Sass logging
As that does not work when percentages are used in the log messages.
Diffstat (limited to 'resources/resource_transformers')
-rw-r--r-- | resources/resource_transformers/tocss/dartsass/client.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/resources/resource_transformers/tocss/dartsass/client.go b/resources/resource_transformers/tocss/dartsass/client.go index 63278f0db..929900ca8 100644 --- a/resources/resource_transformers/tocss/dartsass/client.go +++ b/resources/resource_transformers/tocss/dartsass/client.go @@ -22,6 +22,7 @@ import ( godartsassv1 "github.com/bep/godartsass" "github.com/bep/godartsass/v2" + "github.com/bep/logg" "github.com/gohugoio/hugo/common/herrors" "github.com/gohugoio/hugo/common/hugo" "github.com/gohugoio/hugo/helpers" @@ -70,10 +71,10 @@ func New(fs *filesystems.SourceFilesystem, rs *resources.Spec) (*Client, error) switch event.Type { case godartsass.LogEventTypeDebug: // Log as Info for now, we may adjust this if it gets too chatty. - infol.Logf(message) + infol.Log(logg.String(message)) default: // The rest are either deprecations or @warn statements. - warnl.Logf(message) + warnl.Log(logg.String(message)) } }, }) @@ -86,10 +87,10 @@ func New(fs *filesystems.SourceFilesystem, rs *resources.Spec) (*Client, error) switch event.Type { case godartsassv1.LogEventTypeDebug: // Log as Info for now, we may adjust this if it gets too chatty. - infol.Logf(message) + infol.Log(logg.String(message)) default: // The rest are either deprecations or @warn statements. - warnl.Logf(message) + warnl.Log(logg.String(message)) } }, }) |