Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 18 15:49

    grkek on master

    Changed logging and added EPUB … Fixed logging Merge pull request #47 from aco… (compare)

  • Jan 18 15:49
    grkek closed #47
  • Jan 18 05:48
    acoolstraw synchronize #47
  • Jan 18 02:13
    acoolstraw opened #47
  • Dec 22 2021 11:10

    grkek on master

    Update macros.cr Merge pull request #46 from Cau… (compare)

  • Dec 22 2021 11:10
    grkek closed #46
  • Dec 22 2021 11:10
    grkek reopened #46
  • Dec 22 2021 11:10
    grkek closed #46
  • Dec 22 2021 11:10
    grkek commented #46
  • Dec 22 2021 03:02
    CausticKirbyZ opened #46
  • Dec 17 2021 06:06

    grkek on master

    Update SECURITY.md (compare)

  • Oct 21 2021 10:23

    grkek on master

    Refactor redirect helper methon… Merge pull request #45 from cya… (compare)

  • Oct 21 2021 10:23
    grkek closed #45
  • Oct 20 2021 20:58
    cyangle opened #45
  • Oct 07 2021 03:17

    grkek on v1.0.5

    (compare)

  • Oct 07 2021 03:17

    grkek on master

    Update shard.yml (compare)

  • Oct 07 2021 03:15
    grkek closed #43
  • Oct 07 2021 03:15

    grkek on master

    Add method to read cookie Merge pull request #43 from tre… (compare)

  • Oct 07 2021 03:15

    grkek on master

    Add redirect to context Merge pull request #44 from tre… (compare)

  • Oct 07 2021 03:15
    grkek closed #44
Giorgi Kavrelishvili
@grkek
I also added a verbose mode
It gives you some information about what the hell is going on
verbose mode is also a flag
-Dverbose gives you an option to enable the verbosity
I might add more messages later
Ghost
@ghost~5a5bc22cd73408ce4f8836a6
why not, good
for debug builds yep
I think it can be runtime configurable
can it?
Giorgi Kavrelishvili
@grkek
What?
can be runtime configurable?
Ah its by flags, so no probably not
its compile time
flag
Why would you want verbosity to update according to a runtime configuration variable that would be stupid
If you want to log information first place you will use something like a honeybadger shard or something idk
Ghost
@ghost~5a5bc22cd73408ce4f8836a6
not really
We can have a binary build, tested with debug, then shipped to prod
Giorgi Kavrelishvili
@grkek
You can do
Ghost
@ghost~5a5bc22cd73408ce4f8836a6
the problem with compile time flags is the binary will be different between prod and test
Giorgi Kavrelishvili
@grkek
crystal build ./src/application.cr -Dminimal -Dverbose
something like that
for testing
Ghost
@ghost~5a5bc22cd73408ce4f8836a6
yep but after testing this very Binary, you can't ship it in prod
Giorgi Kavrelishvili
@grkek
crystal build ./src/application.cr -Dminimal -Dverbose -Ddevelopment
something like that for testing
and
crystal build ./src/application.cr -Dproduction
Ghost
@ghost~5a5bc22cd73408ce4f8836a6
I mean, producing a build for Test and for Prod
Giorgi Kavrelishvili
@grkek
something like this for production
Ghost
@ghost~5a5bc22cd73408ce4f8836a6
yeah that's not good
Giorgi Kavrelishvili
@grkek
Why?
Ghost
@ghost~5a5bc22cd73408ce4f8836a6
The binary will be different, bugs could be introduced
Giorgi Kavrelishvili
@grkek
I don't want to include tons of messages in the code
What bugs?
What kind of bugs
?*
Ghost
@ghost~5a5bc22cd73408ce4f8836a6
Because of LLVM, we never know. Like with crystal --release and without
Giorgi Kavrelishvili
@grkek
Ah that is not a problem for the framework tbh
Ghost
@ghost~5a5bc22cd73408ce4f8836a6
they are bugs in release and none without
Giorgi Kavrelishvili
@grkek
I mean how can there be a bug in release if there is not one in the debug version?
Ghost
@ghost~5a5bc22cd73408ce4f8836a6
Could be, macros can produce buggy code
Giorgi Kavrelishvili
@grkek
Incorrect
that is the error of the programming language not the framework
Ghost
@ghost~5a5bc22cd73408ce4f8836a6
that's not important for the user
anyway
both debug and prod can be tested
Giorgi Kavrelishvili
@grkek
They can use Kemal
Ghost
@ghost~5a5bc22cd73408ce4f8836a6
at the end