https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20638
--- Comment #33 from Tomás Cohen Arazi (tcohen) <[email protected]> --- Created attachment 187011 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=187011&action=edit Bug 20638: (follow-up) Silence viewlog.pl warning This patch fixes useless warnings being printed by `viewlog.pl` I noticed while testing this new feature. To test: 1. Test the feature introduced by this patchset 2. Make sure you are running: $ ktd --shell k$ tail -f /var/log/koha/kohadev/*.log => FAIL: You see things like: ``` [2025/09/26 18:37:39] [WARN] Use of uninitialized value in substr at /kohadevbox/koha/tools/viewlog.pl line 156. [2025/09/26 18:37:39] [WARN] Use of uninitialized value in substr at /kohadevbox/koha/tools/viewlog.pl line 156. [2025/09/26 18:37:39] [WARN] Use of uninitialized value in substr at /kohadevbox/koha/tools/viewlog.pl line 156. [2025/09/26 18:37:39] [WARN] Use of uninitialized value in substr at /kohadevbox/koha/tools/viewlog.pl line 156. [2025/09/26 18:37:39] [WARN] Use of uninitialized value in substr at /kohadevbox/koha/tools/viewlog.pl line 156. [2025/09/26 18:43:44] [WARN] Use of uninitialized value in substr at /kohadevbox/koha/tools/viewlog.pl line 156. [2025/09/26 18:43:44] [WARN] Use of uninitialized value in substr at /kohadevbox/koha/tools/viewlog.pl line 156. ``` 3. Refresh the viewlog page => FAIL: They are consistent 4. Apply this patch 5. Repeat 3 => SUCCESS: No more warnings! 6. Sign off :-D Signed-off-by: Tomás Cohen Arazi <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
