Merge lp:~brad-marshall/charms/precise/bip/add-backlog-config into lp:charms/bip

Proposed by Brad Marshall
Status: Merged
Merge reported by: Tim Van Steenburgh
Merged at revision: not available
Proposed branch: lp:~brad-marshall/charms/precise/bip/add-backlog-config
Merge into: lp:charms/bip
Diff against target: 31 lines (+10/-1)
2 files modified
config.yaml (+8/-0)
templates/bip_conf.template (+2/-1)
To merge this branch: bzr merge lp:~brad-marshall/charms/precise/bip/add-backlog-config
Reviewer Review Type Date Requested Status
Tim Van Steenburgh (community) Approve
Review via email: mp+241221@code.launchpad.net

Description of the change

Adding configuration to tweak the backlog settings.

To post a comment you must log in.
Revision history for this message
Tim Van Steenburgh (tvansteenburgh) wrote :

+1 LGTM, thanks Brad!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'config.yaml'
2--- config.yaml 2014-03-25 23:23:37 +0000
3+++ config.yaml 2014-11-09 23:50:39 +0000
4@@ -19,6 +19,14 @@
5 type: string
6 default: "%n/%Y-%m/%c.%d.log"
7 description: Log format
8+ backlog_lines:
9+ type: int
10+ default: 0
11+ description: Number of lines to replay after connect, 0 will replay all lines.
12+ backlog_msg_only:
13+ type: string
14+ default: "false"
15+ description: If bip is backlogging just messages and notices, or all topic changes, nick changes etc.
16 network:
17 type: string
18 default: '{"oftc": {host: "irc.oftc.net", port: 6667}, "freenode": {host: "irc.freenode.net", port: 6667}}'
19
20=== modified file 'templates/bip_conf.template'
21--- templates/bip_conf.template 2014-03-25 23:23:37 +0000
22+++ templates/bip_conf.template 2014-11-09 23:50:39 +0000
23@@ -13,7 +13,8 @@
24 log_format = "{{ log_format }}";
25
26 backlog = true;
27-backlog_lines = 10;
28+backlog_lines = {{ backlog_lines }};
29+backlog_msg_only = {{ backlog_msg_only }};
30 backlog_always = true;
31 blreset_on_talk = false;
32

Subscribers

People subscribed via source and target branches

to all changes: