docker_qrdecode's Introduction
docker_qrdecode's People
docker_qrdecode's Issues
> Just redirect the logs to /dev/null
Just redirect the logs to /dev/null
Hello, will you modify the dockerfile to achieve this ?
Originally posted by @dameert in #2 (comment)
Or could you remove line 50 in the server.js file ?
That line is logging GDPR sensitive information. The error logs are still usefull to us.
Disabling logs
The tool is logging its results to the console.
If a qr code would contain personal data, this might breach GDRP guidelines in certain contexts.
Would you be able to add an Environment Variable to the docker image that disables logging.
(optionally with different levels: no logs, error logs, all logs)
Internal server error with PDF
Hello,
I tested the following use case (imagine EUDCC):
- I have paper version of a qrcode that I want to pass to the docker image
- I used a scanner to generate a PDF with the qrcode (9MB file at 600dpi)
- The process uses 100% cpu, and around 21MB memory
- I receive an internal server error
Docker logs gives me the following
Error: child exited with code 4 at ChildProcess.<anonymous> (/usr/src/app/node_modules/await-spawn/index.js:28:21) at ChildProcess.emit (node:events:390:28) at maybeClose (node:internal/child_process:1064:16) at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) { code: 4, stderr: BufferListStream { _bufs: [], length: 0, _readableState: ReadableState { objectMode: false, highWaterMark: 16384, buffer: BufferList { head: null, tail: null, length: 0 }, length: 0, pipes: null, pipesCount: 0, flowing: null, ended: false, endEmitted: false, reading: false, sync: true, needReadable: false, emittedReadable: false, readableListening: false, resumeScheduled: false, paused: true, emitClose: true, autoDestroy: false, destroyed: false, defaultEncoding: 'utf8', awaitDrain: 0, readingMore: false, decoder: null, encoding: null }, readable: true, _events: [Object: null prototype] {}, _eventsCount: 0, _maxListeners: undefined, _writableState: WritableState { objectMode: false, highWaterMark: 16384, finalCalled: false, needDrain: false, ending: false, ended: false, finished: false, destroyed: false, decodeStrings: true, defaultEncoding: 'utf8', length: 0, writing: false, corked: 0, sync: true, bufferProcessing: false, onwrite: [Function (anonymous)], writecb: null, writelen: 0, bufferedRequest: null, lastBufferedRequest: null, pendingcb: 0, prefinished: false, errorEmitted: false, emitClose: true, autoDestroy: false, bufferedRequestCount: 0, corkedRequestsFree: [CorkedRequest] }, writable: true, allowHalfOpen: true, [Symbol(kCapture)]: false }, stdout: BufferListStream { _bufs: [], length: 0, _readableState: ReadableState { objectMode: false, highWaterMark: 16384, buffer: BufferList { head: null, tail: null, length: 0 }, length: 0, pipes: null, pipesCount: 0, flowing: null, ended: false, endEmitted: false, reading: false, sync: true, needReadable: false, emittedReadable: false, readableListening: false, resumeScheduled: false, paused: true, emitClose: true, autoDestroy: false, destroyed: false, defaultEncoding: 'utf8', awaitDrain: 0, readingMore: false, decoder: null, encoding: null }, readable: true, _events: [Object: null prototype] {}, _eventsCount: 0, _maxListeners: undefined, _writableState: WritableState { objectMode: false, highWaterMark: 16384, finalCalled: false, needDrain: false, ending: false, ended: false, finished: false, destroyed: false, decodeStrings: true, defaultEncoding: 'utf8', length: 0, writing: false, corked: 0, sync: true, bufferProcessing: false, onwrite: [Function (anonymous)], writecb: null, writelen: 0, bufferedRequest: null, lastBufferedRequest: null, pendingcb: 0, prefinished: false, errorEmitted: false, emitClose: true, autoDestroy: false, bufferedRequestCount: 0, corkedRequestsFree: [CorkedRequest] }, writable: true, allowHalfOpen: true, [Symbol(kCapture)]: false } }
I noticed that zbarimg rasterizes the pdf file automatically and might corrupt the qrcode in the pdf file?
http://manpages.ubuntu.com/manpages/bionic/man1/zbarimg.1.html
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.