Use console warning instead of log for deperaction warning.
Merge pull request #12 from GauravButola/fix-log

Use console warning instead of log for deperaction warning.