import { logger } from './syncer/logger' ; import { sync } from './syncer/syncer' ; export async function handler ( event , context ) { logger . setSettings ( { requestId : context . awsRequestId } ) ; logger . debug ( JSON . stringify ( event ) ) ; try { await sync ( ) ; } catch ( e ) { if ( e instanceof Error ) { logger . warn ( `Ignoring error: ${ e . message }` ) ; } logger . trace ( e ) ; } }