Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
yacut committed Dec 12, 2019
1 parent 447b6dc commit 9ed54f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ class GrafanaSync {

} catch (e) {
self.fail.inc();
self.logger.error(e);
self.logger.error(self.formatError(e));
}
}));

Expand All @@ -387,7 +387,7 @@ class GrafanaSync {
}
}
} catch (e) {
self.logger.error(e);
self.logger.error(self.formatError(e));
} finally {
self.logger.debug(`Remove user ${email} from sync map.`);
self.grafanaMembers.set(uniqueId, self.grafanaMembers.get(uniqueId).filter((e) => e !== email));
Expand Down Expand Up @@ -439,7 +439,7 @@ class GrafanaSync {
}
}
} catch (e) {
self.logger.error(e);
self.logger.error(self.formatError(e));
} finally {
if (self.grafanaMembers.get(uniqueId)) {
self.logger.debug(`Remove user ${email} from sync map.`);
Expand All @@ -454,7 +454,7 @@ class GrafanaSync {
self.updateRunning = false;
} catch (e) {
self.fail.inc();
self.logger.error(e);
self.logger.error(self.formatError(e));
self.updateRunning = false;
}
}
Expand Down

0 comments on commit 9ed54f0

Please sign in to comment.