Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.

Latest commit

 

History

History
33 lines (22 loc) · 517 Bytes

DEBUGGING.md

File metadata and controls

33 lines (22 loc) · 517 Bytes

Debugging

Locally

You can debug your instance of slack-gamebot with a built-in console.

2.2.1 > Game.map(&:name)
=> ['pong', 'pool']

Silence Mongoid Logger

If Mongoid logging is annoying you.

Mongoid.logger.level = Logger::INFO
Mongo::Logger.logger.level = Logger::INFO

Heroku

heroku run script/console --app=...

Running `script/console` attached to terminal... up, run.7593

2.2.1 > Game.count
=> 3

2.2.1 > Game.last
=> #<Game _id: 55c8f7da276eaa0003000000, ...>