Logs are logged twice with on_step=True and on_epoch=True
🐛 Bug
Logs are logged twice with on_step=True and on_epoch=True

To Reproduce
Code:
https://gist.github.com/rohitgr7/9322f92daee7d1991b836abd9f7b63f1
Expected behavior
Should log only train_loss_step and train_loss_epoch.
Environment
Please copy and paste the output from our

CUDA:

GPU:               😔
available:         False
version:           10.2


Packages:

numpy:             1.19.2
pyTorch_debug:     False
pyTorch_version:   1.6.0
pytorch-lightning: 1.0.0rc5
tqdm:              4.50.2


System:

OS:                Linux
architecture:

64bit
ELF


processor:         x86_64
python:            3.8.2
version:           #52-Ubuntu SMP Thu Sep 10 10:58:49 UTC 2020



Additional context