Details
Description
I looked at verbose output to prove how normal order is applied, but I was not able to make a simple illustration because of inconsistent logging.
A simple example with promises written against normal order with handles expected to easily identify the promises in the logs to reproduce:
bundle agent main { reports: "The message is '$(msg)'" handle => "MARK1"; vars: "msg" string => "Hello", handle => "MARK2"; }
R: The message is 'Hello'
Run the example:
cf-agent -Kvf ./writing_in_normal_order_is_not_required.cf | grep -P "BEGIN"
verbose: BEGIN parsing file: ./writing_in_normal_order_is_not_required.cf verbose: BEGIN Discovered hard classes: verbose: B: BEGIN bundle main verbose: V: BEGIN variables (pass 1) verbose: P: BEGIN promise 'MARK1' of type "reports" (pass 1) verbose: V: BEGIN variables (pass 2) verbose: V: BEGIN variables (pass 3)
I think I should see "verbose: V: BEGIN promise 'MARK2' of type "vars" (pass 1)", but alas, I do not (even if I pass --log-modules=all).