Skip to content

Conversation

@jankeromnes
Copy link
Contributor

Fixes #3181

@jankeromnes jankeromnes force-pushed the jx/fix-probot-loglevel branch from fd77503 to bcb9196 Compare March 8, 2021 08:26
@jankeromnes
Copy link
Contributor Author

Seems to successfully get rid of the warning:

Before

$ kubectl logs server-59d6c4d9bb-68bv4 | grep LOG_LEVEL
WARN     (Deprecation): [probot] "LOG_LEVEL" environment variable is deprecated. Use "new Probot({ logLevel })" instead
    Deprecation: [probot] "LOG_LEVEL" environment variable is deprecated. Use "new Probot({ logLevel })" instead
$ 

After

$ kubectl logs server-756d7fcf8b-kwq4w | grep LOG_LEVEL
$ 

@jankeromnes
Copy link
Contributor Author

jankeromnes commented Mar 8, 2021

Side-note: Some other warnings are still there though:

Before

$ kubectl logs server-59d6c4d9bb-68bv4 | grep probot | less

WARN     (Deprecation): [probot] "LOG_LEVEL" environment variable is deprecated. Use "new Probot({ logLevel })" instead
    Deprecation: [probot] "LOG_LEVEL" environment variable is deprecated. Use "new Probot({ logLevel })" instead
        at new Probot (/app/node_modules/probot/lib/probot.js:44:27)
WARN     (Deprecation): [probot] "app.route()" is deprecated, use the "getRouter()" argument from the app function instead: "({ app, getRouter }) => { ... }"
    Deprecation: [probot] "app.route()" is deprecated, use the "getRouter()" argument from the app function instead: "({ app, getRouter }) => { ... }"
        at GithubApp.route (/app/node_modules/probot/lib/probot.js:224:23)
        at Object.load (/app/node_modules/probot/lib/load.js:36:9)
        at GithubApp.load (/app/node_modules/probot/lib/probot.js:154:16)
TRACE    (probot): secretOrPrivateKey must have a value
WARN     (probot): Probot is unable to retrieve app information from GitHub for event subscription verification.
  - https://github.com/probot/probot/issues

After

kubectl logs server-756d7fcf8b-kwq4w | grep probot | less

WARN     (Deprecation): [probot] "app.route()" is deprecated, use the "getRouter()" argument from the app function instead: "({ app, getRouter }) => { ... }"
    Deprecation: [probot] "app.route()" is deprecated, use the "getRouter()" argument from the app function instead: "({ app, getRouter }) => { ... }"
        at GithubApp.route (/app/node_modules/probot/lib/probot.js:224:23)
        at Object.load (/app/node_modules/probot/lib/load.js:36:9)
        at GithubApp.load (/app/node_modules/probot/lib/probot.js:154:16)
[...]
TRACE    (probot): secretOrPrivateKey must have a value
WARN     (probot): Probot is unable to retrieve app information from GitHub for event subscription verification.
  - https://github.com/probot/probot/issues

Diff

The LOG_LEVEL warning is fixed, but the app.route() warning is still there -- should this one also get fixed?

(The other warnings seems to indicate that my dev staging deployment has no GitHub App configured, but maybe that's expected in dev staging?)

Copy link
Contributor

@csweichel csweichel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jankeromnes jankeromnes merged commit 48dfd9f into main Mar 9, 2021
@jankeromnes jankeromnes deleted the jx/fix-probot-loglevel branch March 9, 2021 15:11
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

Successfully merging this pull request may close these issues.

[server] Deprecation: [probot] "LOG_LEVEL" environment variable is deprecated. Use "new Probot({ logLevel })" instead

3 participants