If you want to control severity at LoggingWinston. https://stackoverflow.com/questions/58055551/structured-logs-in-google-cloud-run-not-being-parsed-using-winston-for-logging const winston = require('winston'); const useFormat = winston.format.combine( winston.format((info, opts) => { let level = info.level.toUpperCase(); if(level === 'VERBOSE') { level = 'DEBUG'; } info['severity'] = level; delete info.level; return info; })(), winston.format.json()); const { LoggingWinston } = require('@google-cloud/logging-winston'); const loggingWinston = new LoggingWinston(); const logger = winston.createLogger({ level: 'debug', format: useFormat, transports: [ new winston.transports.Console(), loggingWinston ] });

繼續閱讀

gcloud tools docker

gcloud tools docker Create directory “gcloud” at `pwd` first. 1. normal cli command docker run -it -e CLOUDSDK_CONFIG=/config/mygcloud -v `pwd`/gcloud:/config/mygcloud -v `pwd`/gcloud/certs:/certs gcr.io/google.com/cloudsdktool/cloud-sdk ```2\. Put Projects docker run -it -e CLOUDSDK_CONFIG=/config/mygcloud \ -v pwd/gcloud:/config/mygcloud \ -v pwd/gcloud/certs:/certs \ -v pwd/Documents/Projects:/home \ gcr.io/google.com/cloudsdktool/cloud-sdk

繼續閱讀

oooxxxoooxxx: vpc Connector name aaabbbaaabbb: your firebase project Firebase deploy default vpcConnector vpc-Connector node_modules\firebase-tools\lib\gcp\cloudfunctions.js  _createFunction  const data ADD  vpcConnector: ‘oooxxxoooxxx’, Failed gcloud VPC VPC_CONNECTOR=dosportsapi-redis01 projects/aaabbbaaabbb/locations/us-central1/connectors/oooxxxoooxxx gcloud beta functions deploy api \ --runtime nodejs10 \ --trigger-http \ --region us-central1 \ --vpc-connector $VPC_CONNECTOR \ --egress-settings private-ranges-only \ --memory 2048MB

繼續閱讀

https://stackoverflow.com/questions/784929/what-is-the-not-not-operator-in-javascript https://stackoverflow.com/questions/29312123/how-does-the-double-exclamation-work-in-javascript  value  !value  !!value  false  true false  true false  true  null true false  undefined true false  0 true false  -0 true false  1 false true  -5 false true  NaN true false  '' true false  ‘hello’ true false

繼續閱讀

作者的圖片

Sue boy

Sueboy Can support You

CIO

Taiwan