Skip to content

Commit

Permalink
pass function name to logger
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jun 25, 2015
1 parent 453c4cf commit 71939ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ruby/yast/logger.rb
Expand Up @@ -22,7 +22,7 @@ def y2_logger_helper(level,args)
res = Builtins.sformat(*args)
res.gsub!(/%/,"%%") #reescape all %
caller[caller_frame] =~ /(.+):(\d+):in `([^']+)'/
y2_logger(level, "Ruby", $1, $2.to_i, "", res)
y2_logger(level, "Ruby", $1, $2.to_i, $3, res)

if backtrace
y2_logger_helper(level, [2, "------------- Backtrace begin -------------"])
Expand Down

1 comment on commit 71939ba

@shundhammer
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks good to me.

Please sign in to comment.