Jira (PUP-8321) Update how warn_once prints the file and line location of messages
Title: Message Title Eric Delaney updated an issue Puppet / PUP-8321 Update how warn_once prints the file and line location of messages Change By: Eric Delaney Sprint: Platform Core Hopper KANBAN Add Comment This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-8321) Update how warn_once prints the file and line location of messages
Title: Message Title Eric Delaney assigned an issue to Eric Delaney Puppet / PUP-8321 Update how warn_once prints the file and line location of messages Change By: Eric Delaney Assignee: Eric Delaney Add Comment This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-8321) Update how warn_once prints the file and line location of messages
Title: Message Title Eric Delaney updated an issue Puppet / PUP-8321 Update how warn_once prints the file and line location of messages Change By: Eric Delaney Fix Version/s: PUP 5.4.0 Fix Version/s: PUP 5.3.4 Add Comment This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-8321) Update how warn_once prints the file and line location of messages
Title: Message Title Eric Delaney updated an issue Puppet / PUP-8321 Update how warn_once prints the file and line location of messages Change By: Eric Delaney Team: Platform Core Add Comment This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-8321) Update how warn_once prints the file and line location of messages
Title: Message Title Eric Delaney created an issue Puppet / PUP-8321 Update how warn_once prints the file and line location of messages Issue Type: Task Affects Versions: PUP 5.3.3 Assignee: Unassigned Created: 2018/01/05 10:07 AM Priority: Normal Reporter: Eric Delaney Need to update the how the warn_once method prints the file and line location information by using Puppet::Util::Errors.error_location and its i18n friendly output format. def warn_once(kind, key, message, file = nil, line = nil, level = :warning) return if Puppet[:disable_warnings].include?(kind) $unique_warnings ||= {}
Jira (PUP-8321) Update how warn_once prints the file and line location of messages
Title: Message Title Eric Delaney updated an issue Puppet / PUP-8321 Update how warn_once prints the file and line location of messages Change By: Eric Delaney Sub-team: Coremunity Add Comment This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-8321) Update how warn_once prints the file and line location of messages
Title: Message Title Eric Delaney updated an issue Puppet / PUP-8321 Update how warn_once prints the file and line location of messages Change By: Eric Delaney Sprint: Platform Core Grooming Add Comment This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-8321) Update how warn_once prints the file and line location of messages
Title: Message Title Eric Delaney updated an issue Puppet / PUP-8321 Update how warn_once prints the file and line location of messages Change By: Eric Delaney Sprint: Platform Core Grooming Hopper Add Comment This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-8321) Update how warn_once prints the file and line location of messages and calls to warn_once
Title: Message Title Eric Delaney updated an issue Puppet / PUP-8321 Update how warn_once prints the file and line location of messages and calls to warn_once Change By: Eric Delaney Summary: Update how warn_once prints the file and line location of messages and calls to warn_once Add Comment This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-8321) Update how warn_once prints the file and line location of messages and calls to warn_once
Title: Message Title Eric Delaney updated an issue Puppet / PUP-8321 Update how warn_once prints the file and line location of messages and calls to warn_once Change By: Eric Delaney Need to update the how the warn_once method prints the file and line location information by using Puppet::Util::Errors.error_location and its i18n friendly output format. Also update all the calls to warn_once to include i18n string decorations for the message. {code} def warn_once(kind, key, message, file = nil, line = nil, level = :warning)return if Puppet[:disable_warnings].include?(kind)$unique_warnings ||= {}if $unique_warnings.length < 100 then if (! $unique_warnings.has_key?(key)) then$unique_warnings[key] = messagecall_trace =case MM.new(file, line)when SUPPRESS_FILE_LINE ''when FILE_AND_LINE _("\n (at %{file}:%{line})") % { file: file, line: line }when FILE_NO_LINE _("\n (in %{file})") % { file: file }when NO_FILE_LINE _("\n (in unknown file, line %{line})") % { line: line }else _("\n (file & line not available)")endsend_log(level, "#{message}#{call_trace}") endend end{code} Add Comment This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@go