]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/ikiwiki_lacks_a_--quiet.mdwn
pull request sent
[ikiwiki.git] / doc / bugs / ikiwiki_lacks_a_--quiet.mdwn
1 When building ikiwiki in the background, having a --quiet which will only
2 report errors would be nice. -- RichiH
3
4 > Except for building wrappers, and possibly progress cruft output to
5 > stderr by git (gag), ikiwiki is quiet by default. --[[Joey]]
6
7 >> Correct, which means it's not quite quiet:
8
9     % ikiwiki --setup foo --rebuild
10     generating wrappers..
11     successfully generated foo
12     successfully generated foo
13     rebuilding wiki..
14     scanning [...]
15     [...]
16     building [...]
17     [...]
18     done
19
20 Yes, I can simply redirect the output, but an option would be cleaner, imo. -- Richard
21
22 > The output above looks like verbose mode output to me (the scanning/building lines, at least).  Check you haven't enabled it in your setup file by accident. I get the following:
23
24     $ ikiwiki --setup setup
25     successfully generated [cgi]
26     successfully generated [post-update]
27     skipping bad filename [...]
28
29 > I think the following patch is enough to fix it (untested, [here](https://github.com/jmtd/ikiwiki/tree/silence-generated), pull request sent)
30
31     --- a/IkiWiki/Wrapper.pm
32     +++ b/IkiWiki/Wrapper.pm
33     @@ -237,8 +237,7 @@ EOF
34                     error("rename $wrapper.new $wrapper: $!");
35             }
36             #translators: The parameter is a filename.
37     -       printf(gettext("successfully generated %s"), $wrapper);
38     -       print "\n";
39     +       debug(gettext("successfully generated %s"), $wrapper);
40      }
41      
42      1
43
44 > -- [[Jon]]