Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
engines:
rubocop:
enabled: true
fixme:
enabled: true
checks:
Rubocop/Lint/UnusedBlockArgument:
enabled: false
ratings:
paths:
- "**.rb"
Expand Down
4 changes: 2 additions & 2 deletions lib/oink/rails/memory_usage_logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ def log_memory_usage
begin
memory_usage = Instrumentation::MemorySnapshot.memory
logger.info("Memory usage: #{memory_usage} | PID: #{$$}")
rescue Oink::Instrumentation::MemoryDataUnavailableError => e
rescue Oink::Instrumentation::MemoryDataUnavailableError
logger.error("Oink unable to retrieve memory on this system. See Oink::MemorySnapshot in source.")
end
end
end
end
end
end