Skip to content

Commit

Permalink
log_error bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Aug 6, 2008
1 parent a941bf0 commit 68fddf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/footnotes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def add_footnotes!
add_footnotes_without_validation! if valid?
rescue Exception => e
# Discard footnotes if there are any problems
log_error("Footnotes Exception", e)
self.class.log_error("Footnotes Exception", e)
end

# Calls the class method close! in each note
Expand Down
2 changes: 1 addition & 1 deletion lib/notes/components_note.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def initialize_component_notes!
@notes << note if note.respond_to?(:valid?) && note.valid?
rescue Exception => e
# Discard note if it has a problem
log_error("Footnotes #{note.to_s.camelize}ComponentNote Exception", e)
self.class.log_error("Footnotes #{note.to_s.camelize}ComponentNote Exception", e)
next
end
end
Expand Down

0 comments on commit 68fddf4

Please sign in to comment.