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

Fixes #7436: Techniques that call _logger, _logger_default or logger_rudder will break because these methods take 4 arguments now and no upgrade path has been planned #269

Conversation

jooooooon
Copy link
Member

…rudder will break because these methods take 4 arguments now and no upgrade path has been planned
@@ -31,9 +31,13 @@

bundle agent _logger(message, old_class_prefix, origin_class_prefix, args)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't you change the signature of the method ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops. Well spotted, thanks. Fixed.

@jooooooon jooooooon force-pushed the bug_7436/techniques_that_call_logger_logger_default_or_logger_rudder_will_break_because_these_methods_take_4_arguments_now_and_no_upgrade_path_has_been_planned_2 branch from 8ef9127 to 4e3ee64 Compare November 23, 2015 19:15
@jooooooon
Copy link
Member Author

PR updated

@jooooooon jooooooon force-pushed the bug_7436/techniques_that_call_logger_logger_default_or_logger_rudder_will_break_because_these_methods_take_4_arguments_now_and_no_upgrade_path_has_been_planned_2 branch from 4e3ee64 to 4f5f0ea Compare November 23, 2015 19:17
# @parameter origin_class_prefix The prefix of the class for different states (1.x version)
# @parameter args The arguments used to call the generic method (slist)
#
# @class_prefix _logger_default
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why the class prefix ? i'm pretty sure there's none of them

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why the class prefix ? i'm pretty sure there's none of them

All bundles must have a class_prefix. It's our internal style tests' policy. If we don't have one, tests will fail.

Also, there has always been one in this file, I just copied it without changing this line (see the individual commits, rather than the general overview)

@jooooooon jooooooon force-pushed the bug_7436/techniques_that_call_logger_logger_default_or_logger_rudder_will_break_because_these_methods_take_4_arguments_now_and_no_upgrade_path_has_been_planned_2 branch from 4f5f0ea to d84d81b Compare November 23, 2015 19:58
@jooooooon jooooooon force-pushed the bug_7436/techniques_that_call_logger_logger_default_or_logger_rudder_will_break_because_these_methods_take_4_arguments_now_and_no_upgrade_path_has_been_planned_2 branch from d84d81b to 984f42d Compare November 23, 2015 20:01
peckpeck added a commit that referenced this pull request Nov 23, 2015
…logger_logger_default_or_logger_rudder_will_break_because_these_methods_take_4_arguments_now_and_no_upgrade_path_has_been_planned_2

Fixes #7436: Techniques that call _logger, _logger_default or logger_rudder will break because these methods take 4 arguments now and no upgrade path has been planned
@peckpeck peckpeck merged commit 30219f7 into Normation:master Nov 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants