Post AMNt3M3PYbmVjbIAzo by glyph@merveilles.town
 (DIR) More posts by glyph@merveilles.town
 (DIR) Post #AMNt3M3PYbmVjbIAzo by glyph@merveilles.town
       2022-08-10T11:27:13Z
       
       0 likes, 0 repeats
       
       When writing log statements for an application, do you prefer to log what is about to be done or what has been done?For example:"Initialising database..."or"Database initialised"
       
 (DIR) Post #AMNt3MYbgcjdILt5cW by newt@stereophonic.space
       2022-08-10T12:04:11.146489Z
       
       2 likes, 0 repeats
       
       @glyph both. printf(“Initializing database… “);r = db_init();if(r == OK) printf(“ok\n”);else printf(“failed!\nDetails:%s\n”, error_details(r));
       
 (DIR) Post #AMNtLv00N3xdKLYCzA by captainepoch@stereophonic.space
       2022-08-10T12:07:34.165010Z
       
       2 likes, 0 repeats
       
       @newt @glyph I usuarlly try to have as many logs as I can, but in a meaningful way, meaning that if it adds useful debug information, I add it, otherwise it's just noise.
       
 (DIR) Post #AMNtTBgmiTYx7L1j8q by newt@stereophonic.space
       2022-08-10T12:08:52.884037Z
       
       3 likes, 0 repeats
       
       @captainepoch @glyph that’s what my coworkers do. Now we have so much debug info with small errors that don’t matter and nobody has time to fix them, nobody even knows what’s going on :comfyderp:
       
 (DIR) Post #AMNumvpXULslg66HOy by captainepoch@stereophonic.space
       2022-08-10T12:23:39.374632Z
       
       1 likes, 0 repeats
       
       @newt @glyph Yeah, that's noise, I'd only add what's necessary, no more and no less :blobderpy:
       
 (DIR) Post #AMO0mN67DtZRgJyBxw by karolat@stereophonic.space
       2022-08-10T13:30:44.963467Z
       
       0 likes, 0 repeats
       
       @captainepoch @newt @glyph it’s not noise, you just need someone who can read it :blobwizard:
       
 (DIR) Post #AMO1fOvo6gfxIPO8bQ by captainepoch@stereophonic.space
       2022-08-10T13:40:41.409247Z
       
       1 likes, 0 repeats
       
       @karolat @glyph @newt Too much logs can be pretty noisy. Although that someone is usually me (in my job :akkoderp:)