Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log messages not showing in logs in vercel #2003

Open
eddysims opened this issue Apr 21, 2024 · 3 comments
Open

Log messages not showing in logs in vercel #2003

eddysims opened this issue Apr 21, 2024 · 3 comments

Comments

@eddysims
Copy link

Bug Report

Current Behavior

I am trying to use the app.info.log with a Vercel serverless function, but the message is not showing up in Vercel.

export default (app) => {
   ...
   
   if (!config?.perform) {
        app.log.info('issue.opened: config.perform is false');
        return;
    }
    
    ...
};

Group 19

Group 18

Expected behavior/code

I would expect that the log message shows up in the logs.

Environment

  • Probot version(s): 13.0.1
  • Node/npm version: Node v21.6.2 / npm 10.2.4
Copy link

welcome bot commented Apr 21, 2024

Thanks for opening this issue. A contributor should be by to give feedback soon. In the meantime, please check out the contributing guidelines and explore other ways you can get involved.

@wolfy1339
Copy link
Collaborator

How exactly does vercel get the logging? Do they provide a custom logging function?

Or do they simply read from stdput and stderr

@wolfy1339
Copy link
Collaborator

Hi @eddysims,

Can you check if #2011 fixes your issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants