aboutsummaryrefslogtreecommitdiffhomepage
path: root/testscripts
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2023-11-01 15:21:21 +0100
committerBjørn Erik Pedersen <[email protected]>2023-11-01 16:40:26 +0100
commit4d38f47250f122dc370c9b3d6f58226cd2a18f62 (patch)
treebd2e33dc1d9f805f55cdf31737aee82d11427298 /testscripts
parent80f793c38d250ca87b6083eb48d7420baaffd02c (diff)
downloadhugo-4d38f47250f122dc370c9b3d6f58226cd2a18f62.tar.gz
hugo-4d38f47250f122dc370c9b3d6f58226cd2a18f62.zip
Add a field prefix to the deprecated log statements
To make theme easier to spot, esp. on INFO level.
Diffstat (limited to 'testscripts')
-rw-r--r--testscripts/commands/deprecate.txt14
1 files changed, 7 insertions, 7 deletions
diff --git a/testscripts/commands/deprecate.txt b/testscripts/commands/deprecate.txt
index b15d7ec84..3be4976d5 100644
--- a/testscripts/commands/deprecate.txt
+++ b/testscripts/commands/deprecate.txt
@@ -1,13 +1,13 @@
+# Test deprecation logging.
+hugo -e info --logLevel info
+stdout 'INFO deprecated: item was deprecated in Hugo'
-hugo -e info --logLevel info
-stdout 'INFO item was deprecated in Hugo'
+hugo -e warn --logLevel warn
+stdout 'WARN deprecated: item was deprecated in Hugo'
-hugo -e warn --logLevel warn
-stdout 'WARN item was deprecated in Hugo'
-
-! hugo -e error --logLevel warn
-stdout 'ERROR item was deprecated in Hugo'
+! hugo -e error --logLevel warn
+stdout 'ERROR deprecated: item was deprecated in Hugo'
-- hugo.toml --
baseURL = "https://example.com/"