Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newline after "Building Sites …" message? #7579

Closed
jwarner112 opened this issue Aug 20, 2020 · 1 comment
Closed

Newline after "Building Sites …" message? #7579

jwarner112 opened this issue Aug 20, 2020 · 1 comment

Comments

@jwarner112
Copy link
Contributor

Hey there,

I tend to do print-debugging until something goes real wrong. So when I'm writing a shortcode or template file, I do a lot of hugo server ... and see a lot of

hugo server -D
Building sites … WARN 2020/08/19 23:45:42 warn: this is debug message 0
WARN 2020/08/19 23:45:42 warn: this is debug message 1
WARN 2020/08/19 23:45:42 warn: this is debug message 2

                   | EN  
-------------------+-----
  Pages            | 28  
  Paginator pages  |  1  
  Non-page files   |  0  
  Static files     |  1  
  Processed images |  2  
  Aliases          |  4  
  Sitemaps         |  1  
  Cleaned          |  0  

Built in 1698 ms
Watching for changes in /home/jeff/code/website.com/{archetypes,assets,content,data,i18n,static,themes}
Watching for config changes in /home/jeff/code/website.com/config.toml
Environment: "development"
Serving pages from /home/jeff/code/website.com/public
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)

This means a lot of the time I miss the very first line -- on the same line as Building Sites ..., so I was thinking we could add a newline afterwards?

hugo server -D
Building sites …
WARN 2020/08/19 23:45:42 warn: this is debug message 0
WARN 2020/08/19 23:45:42 warn: this is debug message 1
WARN 2020/08/19 23:45:42 warn: this is debug message 2

It's a small nit-pick and I'm issuing a PR for it in a sec. Maybe there's some reason this hasn't been done, but otherwise it would at least be a tiny bit easier to read. Thoughts?

jwarner112 added a commit to jwarner112/hugo that referenced this issue Aug 20, 2020
jwarner112 added a commit to jwarner112/hugo that referenced this issue Aug 22, 2020
…d completes; Append newline to the message instead (Fixes gohugoio#7579)
@bep bep closed this as completed in d39636a Aug 22, 2020
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant