Just upgraded to the 2019 version of LaTeX. Prior to upgrading, this command had no problems:
\printcontents{l}{0}{\setcounter{tocdepth}{1}}
After upgrading, this command does not print the secondary table of contents. If I remove the {l}:
\printcontents{ }{0}{\setcounter{tocdepth}{1}}
then it will print, but as expected it uses the chapter, section, etc. settings rather than the lchapter, lsection, etc. settings as defined with the \titlecontents command, for example:
\titlecontents{chapter}
[1.25cm]
{\addvspace{12pt}\large\bfseries}
{\color{blue!60}\contentslabel[\Large\thecontentslabel]{1.25cm}\color{blue}}
{\color{blue}}
{\color{blue!60}\normalsize\;\titlerule*[.5pc]{.}\;\thecontentspage}
\titlecontents{lchapter}
[0em]
{\addvspace{15pt}\large\bfseries}
{\color{black}\contentslabel[\Large\thecontentslabel]{1.25cm}\color{black}}
{}
{\color{black}\normalsize\bfseries\;\titlerule*[.5pc]{.}\;\thecontentspage}
MWE:
\documentclass[12pt,fleqn,twoside]{book}
\RequirePackage{titletoc}
\titlecontents{chapter}
[1.25cm]
{\large\bfseries}
{\contentslabel[\Large\thecontentslabel]{1.25cm}}
{}
{\normalsize\thecontentspage}
\titlecontents{lchapter}
[0em]
{\large\bfseries}
{\contentslabel[\Large\thecontentslabel]{1.25cm}}
{}
{\normalsize\bfseries\thecontentspage}
\begin{document}
\startcontents%
\chapter{Chapter 1}
some text
\chapter{Chapter 2}
some text
\printcontents{l}{0}{\setcounter{tocdepth}{1}}
\end{document}
This doesn't print a table of contents. Replacing {l} with { } will print one as described above.