Skip to content

Commit ffa5298

Browse files
committed
DEBUG
1 parent c73b1bc commit ffa5298

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

components/dashboard/src/settings/Account.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { PaymentContext } from "../payment-context";
1717
export default function Account() {
1818
const { user } = useContext(UserContext);
1919
const { showPaymentUI } = useContext(PaymentContext);
20+
console.log('showPaymentUI', showPaymentUI);
2021

2122
const [modal, setModal] = useState(false);
2223
const [typedEmail, setTypedEmail] = useState('');

components/dashboard/src/teams/TeamPlans.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ export default function TeamPlans() {
2121
const location = useLocation();
2222
const team = getCurrentTeam(location, teams);
2323
const [ members, setMembers ] = useState<TeamMemberInfo[]>([]);
24-
const { showPaymentUI, currency, setCurrency } = useContext(PaymentContext);
24+
const { showPaymentUI, currency, setCurrency, isChargebeeCustomer } = useContext(PaymentContext);
25+
console.log('members', members.length, 'showPaymentUI', showPaymentUI, 'currency', currency, 'isChargebeeCustomer', isChargebeeCustomer);
2526

2627
useEffect(() => {
2728
if (!team) {

components/ee/payment-endpoint/src/chargebee/endpoint-controller.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export class EndpointController {
6161
* @param res
6262
*/
6363
private async handleUpdateGitpodSubscription(req: express.Request, res: express.Response) {
64+
log.info('Chargebee handleUpdateGitpodSubscription!');
6465
if (!req.body || !req.body.event_type) {
6566
log.error('Received malformed event request from chargebee!');
6667
return;
@@ -70,7 +71,7 @@ export class EndpointController {
7071
const handled = await this.eventHandler.handle(req.body);
7172
if (!handled) {
7273
const payload = { chargebeeEventType: req.body.event_type, action: 'ignored' };
73-
log.debug(`Faithfully ignoring chargebee event of type: ${req.body.event_type}`, payload);
74+
log.warn(`Faithfully ignoring chargebee event of type: ${req.body.event_type}`, payload);
7475
}
7576
res.status(200).send();
7677
} catch (err) {

0 commit comments

Comments
 (0)