Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Commit

Permalink
♻️ Use loglevel instead of console
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiří Zdvomka committed Oct 25, 2021
1 parent 683c3c7 commit 5dc7bf1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { LOGIN_SUCCESS, LOGIN_FAILURE, loginRequest } from '@ackee/petrus';
import { put, take, takeLeading } from 'redux-saga/effects';
import * as logger from 'config/loglevel';

import { login } from '../actions';

Expand All @@ -11,7 +12,7 @@ function* handleLoginForm(action: ReturnType<typeof login.submit>) {
if (result.type === LOGIN_SUCCESS) {
yield put(login.submitSuccess());
} else {
console.error(result.error);
logger.error(result.error);
yield put(login.submitFailure('login.failed'));
}
}
Expand Down

0 comments on commit 5dc7bf1

Please sign in to comment.